locking/atomics: atomic-instrumented: simplify ifdeffery
authorMark Rutland <mark.rutland@arm.com>
Tue, 25 May 2021 14:02:32 +0000 (15:02 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 26 May 2021 11:20:52 +0000 (13:20 +0200)
commitbccf1ec369ac126b0997d01a6e1deae00e2cf6b3
tree8f19aef168e64491b385e85a6b6b95d3c6c1f5c4
parent3c1885187bc1faa0a1c52f7bd34550740a208169
locking/atomics: atomic-instrumented: simplify ifdeffery

Now that all architectures implement ARCH_ATOMIC, the fallbacks are
generated before the instrumented wrappers are generated. Due to this,
in atomic-instrumented.h we can assume that the whole set of atomic
functions has been generated. Likewise, atomic-instrumented.h doesn't
need to provide a preprocessor definition for every atomic it wraps.

This patch removes the redundant ifdeffery.

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Boqun Feng <boqun.feng@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20210525140232.53872-34-mark.rutland@arm.com
include/asm-generic/atomic-instrumented.h
scripts/atomic/gen-atomic-instrumented.sh