linux/scripts/atomic
Mark Rutland 47401d9494 locking/atomic: simplify ifdef generation
In gen-atomic-fallback.sh's gen_proto_order_variants(), we generate some
ifdeferry with:

| local basename="${arch}${atomic}_${pfx}${name}${sfx}"
| ...
| printf "#ifdef ${basename}\n"
| ...
| printf "#endif /* ${arch}${atomic}_${pfx}${name}${sfx} */\n\n"

For clarity, use ${basename} for both sides, rather than open-coding the
string generation.

There is no change to any of the generated headers as a result of this
patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210713105253.7615-2-mark.rutland@arm.com
2021-07-16 18:46:44 +02:00
..
fallbacks locking/atomics: Flip fallbacks and instrumentation 2020-06-11 08:03:24 +02:00
atomic-tbl.sh locking/atomics: Change 'fold' to 'grep' 2019-02-11 14:27:33 +01:00
atomics.tbl locking/atomics: Fix scripts/atomic/ script permissions 2018-11-01 12:45:46 +01:00
check-atomics.sh locking/atomic: delete !ARCH_ATOMIC remnants 2021-05-26 13:20:52 +02:00
gen-atomic-fallback.sh locking/atomic: simplify ifdef generation 2021-07-16 18:46:44 +02:00
gen-atomic-instrumented.sh locking/atomics: atomic-instrumented: simplify ifdeffery 2021-05-26 13:20:52 +02:00
gen-atomic-long.sh asm-generic/atomic: Use __always_inline for pure wrappers 2020-01-07 07:47:23 -08:00
gen-atomics.sh locking/atomic: delete !ARCH_ATOMIC remnants 2021-05-26 13:20:52 +02:00