tools headers: Sync UAPI linux/openat2.h with the kernel sources
PATCH 1/1 tools headers: Sync UAPI linux/openat2.h with the kernel sources
From: Wang Xiang <[email protected]>
Since commit 3d6cfbaf279d ("perf beauty: Introduce scrape script for various fs syscalls 'flags' arguments"), the file tools/perf/trace/beauty/include/uapi/linux/fcntl.h includes <linux/openat2.h>, but openat2.h was never synced to the tools/perf/trace/beauty/include/uapi/linux/ directory, even though it was added to the BEAUTY_FILES check list in tools/perf/check-headers.sh.
This causes a compilation failure:
$ aarch64-linux-gnu-gcc -E tools/perf/trace/beauty/include/uapi/linux/fcntl.h \ -I./tools/perf/trace/beauty/include/uapi
tools/perf/trace/beauty/include/uapi/linux/fcntl.h:6:10: fatal error:
linux/openat2.h: No such file or directory 6 | #include <linux/openat2.h>
So, now we need sync openat2.h from include/uapi/linux/openat2.h to fix this dependency.
--- tools/perf/check-headers.sh | 1 + .../trace/beauty/include/uapi/linux/openat2.h | 43 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 tools/perf/trace/beauty/include/uapi/linux/openat2.h
tools/perf/check-headers.sh +1 -0
@@ -95,6 +95,7 @@ declare -a BEAUTY_FILES=( "include/uapi/linux/fcntl.h" "include/uapi/linux/fs.h" "include/uapi/linux/mount.h" + "include/uapi/linux/openat2.h" "include/uapi/linux/prctl.h" "include/uapi/linux/sched.h" "include/uapi/linux/stat.h"
tools/perf/trace/beauty/include/uapi/linux/openat2.h new file +43 -0
43 lines not on this page · raw message
Signature · 1 line
2.25.1