]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: Rename __fallthrough to fallthrough
authorLiam Howlett <Liam.Howlett@oracle.com>
Fri, 25 Nov 2022 15:19:18 +0000 (10:19 -0500)
committerLiam Howlett <Liam.Howlett@oracle.com>
Fri, 25 Nov 2022 15:48:00 +0000 (10:48 -0500)
commit8d7193b070fb42b299b9a7c40a98056d9132755c
treea6308e4048929dc27c6142d7c50198054fba3923
parenta1453598c93bdcc63e0f12bc05c554614b0d253e
tools: Rename __fallthrough to fallthrough

Rename the fallthrough attribute to better align with the kernel
version.  Copy the definition from include/linux/compiler_attributes.h
including the #else clause.  Adding the #else clause allows the tools
compiler.h header to drop the check for a definition entirely and keeps
both definitions together.

Change any __fallthrough statements to fallthrough anywhere it was used
within perf.

This allows other tools to use the same key word as the kernel.

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Miguel Ojeda <ojeda@kernel.org>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Tom Rix <trix@redhat.com>
Signed-off-by: Liam Howlett <Liam.Howlett@oracle.com>
tools/include/linux/compiler-gcc.h
tools/include/linux/compiler.h
tools/perf/builtin-probe.c
tools/perf/builtin-stat.c
tools/perf/builtin-top.c
tools/perf/util/callchain.c
tools/perf/util/intel-pt-decoder/intel-pt-decoder.c
tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c
tools/perf/util/ordered-events.c
tools/perf/util/strfilter.c
tools/perf/util/string.c