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

tools headers uapi: Sync linux/stat.h with the kernel sources

To pick the changes from:

3ad2522c64cf ("statx: define STATX_ATTR_VERITY")

That don't trigger any changes in tooling.

This silences this perf build warning:

Warning: Kernel ABI header at 'tools/include/uapi/linux/stat.h' differs from latest version at 'include/uapi/linux/stat.h'
diff -u tools/include/uapi/linux/stat.h include/uapi/linux/stat.h

At some point we wi'll beautify structs passed in pointers to syscalls
and then we'll need to have tables for these defines, for now update the
file to silence the warning as this file is used for doing this type of
number -> string translations for other defines found in these file.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Eric Biggers <ebiggers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-thcy60dpry5qrpn7nmc58bwg@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+1 -1
+1 -1
tools/include/uapi/linux/stat.h
··· 167 167 #define STATX_ATTR_APPEND 0x00000020 /* [I] File is append-only */ 168 168 #define STATX_ATTR_NODUMP 0x00000040 /* [I] File is not to be dumped */ 169 169 #define STATX_ATTR_ENCRYPTED 0x00000800 /* [I] File requires key to decrypt in fs */ 170 - 171 170 #define STATX_ATTR_AUTOMOUNT 0x00001000 /* Dir: Automount trigger */ 171 + #define STATX_ATTR_VERITY 0x00100000 /* [I] Verity protected file */ 172 172 173 173 174 174 #endif /* _UAPI_LINUX_STAT_H */