mirror-linux/tools/testing/selftests/memfd
Hardik Garg 34570f85a2 selftests/memfd: Fix unknown type name build failure
Partially backport v6.3 commit 11f75a0144 ("selftests/memfd: add tests
for MFD_NOEXEC_SEAL MFD_EXEC") to fix an unknown type name build error.
In some systems, the __u64 typedef is not present due to differences in
system headers, causing compilation errors like this one:

fuse_test.c:64:8: error: unknown type name '__u64'
   64 | static __u64 mfd_assert_get_seals(int fd)

This header includes the  __u64 typedef which increases the likelihood
of successful compilation on a wider variety of systems.

Signed-off-by: Hardik Garg <hargar@linux.microsoft.com>
Reviewed-by: Tyler Hicks (Microsoft) <code@tyhicks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-30 14:03:19 +01:00
..
.gitignore
Makefile selftests: add build/cross-build dependency check script 2020-04-23 17:23:20 -06:00
common.c
common.h
config
fuse_mnt.c
fuse_test.c selftests/memfd: Fix unknown type name build failure 2023-05-30 14:03:19 +01:00
memfd_test.c selftests/memfd: clean up mapping in mfd_fail_write 2022-02-26 09:51:17 -08:00
run_fuse_test.sh
run_hugetlbfs_test.sh