aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2025-11-28 10:55:09 +0100
committerChristian Brauner <brauner@kernel.org>2025-11-28 10:55:34 +0100
commit4be9e04ebf75a5c4478c1c6295e2122e5dc98f5f (patch)
treefa495c8262e0091220433298f25e9468d2ada34f
parent01c9c30aae317adc3ae7246f545b2c83b16ff314 (diff)
downloadtip-4be9e04ebf75.tar.gz
vfs: add needed headers for new struct delegation definition
The definition of struct delegation uses stdint.h integer types. Add the necessary headers to ensure that always works. Fixes: 1602bad16d7d ("vfs: expose delegation support to userland") Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Christian Brauner <brauner@kernel.org>
-rw-r--r--include/uapi/linux/fcntl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/linux/fcntl.h b/include/uapi/linux/fcntl.h
index 008fac15e57308..5e277fd955aae5 100644
--- a/include/uapi/linux/fcntl.h
+++ b/include/uapi/linux/fcntl.h
@@ -4,6 +4,11 @@
#include <asm/fcntl.h>
#include <linux/openat2.h>
+#ifdef __KERNEL__
+#include <linux/types.h>
+#else
+#include <stdint.h>
+#endif
#define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0)
#define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1)