memfd_test: Make it work on 32-bit systems 13/32913/1
authorPranith Kumar <bobby.prani@gmail.com>
Wed, 3 Sep 2014 14:31:16 +0000 (10:31 -0400)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Mon, 29 Dec 2014 08:31:36 +0000 (09:31 +0100)
commit326cd996584d775c0263fb519fd722715806d337
treeb366837d056e2ef205c4138b52dedcbf2dd9a747
parent08869acfede2b04aeaae72a7a40c0c672368bdae
memfd_test: Make it work on 32-bit systems

This test currently fails on 32-bit systems since we use u64 type to pass the
flags to fcntl.

This commit changes this to use 'unsigned int' type for flags to fcntl making it
work on 32-bit systems.

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Change-Id: I80190741a7cfaf9517cf220a58bcc36177139993
Origin: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=57e67900d4c7949ad646a5f43a8ca5180170d2a0
Backported-by: Maciej Wereski <m.wereski@partner.samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
tools/testing/selftests/memfd/memfd_test.c