Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vfs: use UAPI types for new struct delegation definition

Using libc types and headers from the UAPI headers is problematic as it
introduces a dependency on a full C toolchain.

Use the fixed-width integer types provided by the UAPI headers instead.

Fixes: 1602bad16d7d ("vfs: expose delegation support to userland")
Fixes: 4be9e04ebf75 ("vfs: add needed headers for new struct delegation definition")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20251203-uapi-fcntl-v1-1-490c67bf3425@linutronix.de
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>

authored by

Thomas Weißschuh and committed by
Christian Brauner
fe93446b 8cf01d0c

+3 -7
+3 -7
include/uapi/linux/fcntl.h
··· 4 4 5 5 #include <asm/fcntl.h> 6 6 #include <linux/openat2.h> 7 - #ifdef __KERNEL__ 8 7 #include <linux/types.h> 9 - #else 10 - #include <stdint.h> 11 - #endif 12 8 13 9 #define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0) 14 10 #define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1) ··· 86 90 87 91 /* Argument structure for F_GETDELEG and F_SETDELEG */ 88 92 struct delegation { 89 - uint32_t d_flags; /* Must be 0 */ 90 - uint16_t d_type; /* F_RDLCK, F_WRLCK, F_UNLCK */ 91 - uint16_t __pad; /* Must be 0 */ 93 + __u32 d_flags; /* Must be 0 */ 94 + __u16 d_type; /* F_RDLCK, F_WRLCK, F_UNLCK */ 95 + __u16 __pad; /* Must be 0 */ 92 96 }; 93 97 94 98 /*