memfd_test: Make it work on 32-bit systems
authorPranith Kumar <bobby.prani@gmail.com>
Wed, 3 Sep 2014 14:31:16 +0000 (10:31 -0400)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 4 Sep 2014 16:59:03 +0000 (10:59 -0600)
commit57e67900d4c7949ad646a5f43a8ca5180170d2a0
tree2f239d436f63d20963cc5f79ef6739ee6acabbd9
parent69e273c0b0a3c337a521d083374c918dc52c666f
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>
tools/testing/selftests/memfd/memfd_test.c