]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: Rename __fallthrough to fallthrough
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 25 Nov 2022 15:19:18 +0000 (10:19 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 28 Nov 2022 20:11:22 +0000 (15:11 -0500)
commit11054aba14710eeb8d76b52283780914321d23f0
treec5068dc848dbc5938b1a576e86918d258a07d5b7
parent094226ad94f471a9f19e8f8e7140a09c2625abaa
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 R. 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