summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorHardik Garg <hargar@linux.microsoft.com>2023-05-26 16:21:36 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-30 13:55:30 +0100
commiteff115ca949a4a6244e2acbd4a14cd2dd6e7fa99 (patch)
tree8ea45d6b4da52aa5c6217036407d99de37f16918 /tools
parent1a98b6e028eedc26445721a049231a8d8d34e146 (diff)
downloadlinux-stable-eff115ca949a4a6244e2acbd4a14cd2dd6e7fa99.tar.gz
linux-stable-eff115ca949a4a6244e2acbd4a14cd2dd6e7fa99.tar.bz2
linux-stable-eff115ca949a4a6244e2acbd4a14cd2dd6e7fa99.zip
selftests/memfd: Fix unknown type name build failure
Partially backport v6.3 commit 11f75a01448f ("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>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/memfd/fuse_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/memfd/fuse_test.c b/tools/testing/selftests/memfd/fuse_test.c
index be675002f918..93798c8c5d54 100644
--- a/tools/testing/selftests/memfd/fuse_test.c
+++ b/tools/testing/selftests/memfd/fuse_test.c
@@ -22,6 +22,7 @@
#include <linux/falloc.h>
#include <fcntl.h>
#include <linux/memfd.h>
+#include <linux/types.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>