diff options
author | Mark Rutland <mark.rutland@arm.com> | 2021-07-13 11:52:49 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-07-16 18:46:44 +0200 |
commit | 47401d94947d507ff9f33fccf490baf47638fb69 (patch) | |
tree | e7d738ed326c45287bd8868aecdcfd66dd98c430 /scripts/atomic/fallbacks | |
parent | d4e5076c3522658996dbb050aa6c708bd2c1a3c1 (diff) | |
download | linux-stable-47401d94947d507ff9f33fccf490baf47638fb69.tar.gz linux-stable-47401d94947d507ff9f33fccf490baf47638fb69.tar.bz2 linux-stable-47401d94947d507ff9f33fccf490baf47638fb69.zip |
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
Diffstat (limited to 'scripts/atomic/fallbacks')
0 files changed, 0 insertions, 0 deletions