]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf tools: Fix build error on generated/fs_at_flags_array.c
authorNamhyung Kim <namhyung@kernel.org>
Tue, 3 Dec 2024 03:53:49 +0000 (19:53 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 4 Dec 2024 22:34:50 +0000 (14:34 -0800)
commit968121f0a649ee2ff5ac7b29aa4d4f6b0798ea9e
tree5c6137b48c1a813fc8b65726b55f383ce0b8c35f
parentc994ac74cc3683b1cca45bc425ea1c625da109f3
perf tools: Fix build error on generated/fs_at_flags_array.c

It should only have generic flags in the array but the recent header
sync brought a new flags to fcntl.h and caused a build error.  Let's
update the shell script to exclude flags specific to name_to_handle_at().

    CC      trace/beauty/fs_at_flags.o
  In file included from trace/beauty/fs_at_flags.c:21:
  tools/perf/trace/beauty/generated/fs_at_flags_array.c:13:30: error: initialized field overwritten [-Werror=override-init]
     13 |         [ilog2(0x002) + 1] = "HANDLE_CONNECTABLE",
        |                              ^~~~~~~~~~~~~~~~~~~~
  tools/perf/trace/beauty/generated/fs_at_flags_array.c:13:30: note: (near initialization for ‘fs_at_flags[2]’)

Reviewed-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20241203035349.1901262-12-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/trace/beauty/fs_at_flags.sh