summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2021-11-30 12:44:23 +0100
committerPaul E. McKenney <paulmck@kernel.org>2021-12-09 16:42:27 -0800
commit2505a51ac6f249956735e0a369e2404f96eebef0 (patch)
treeedaea77c1a0eb71bd8e157b369c8f927e682f6ad /scripts
parentf948666de517cf8ebef7cb2c9b2d669dec4bfe2e (diff)
downloadlinux-stable-2505a51ac6f249956735e0a369e2404f96eebef0.tar.gz
linux-stable-2505a51ac6f249956735e0a369e2404f96eebef0.tar.bz2
linux-stable-2505a51ac6f249956735e0a369e2404f96eebef0.zip
locking/barriers, kcsan: Support generic instrumentation
Thus far only smp_*() barriers had been defined by asm-generic/barrier.h based on __smp_*() barriers, because the !SMP case is usually generic. With the introduction of instrumentation, it also makes sense to have asm-generic/barrier.h assist in the definition of instrumented versions of mb(), rmb(), wmb(), dma_rmb(), and dma_wmb(). Because there is no requirement to distinguish the !SMP case, the definition can be simpler: we can avoid also providing fallbacks for the __ prefixed cases, and only check if `defined(__<barrier>)`, to finally define the KCSAN-instrumented versions. This also allows for the compiler to complain if an architecture accidentally defines both the normal and __ prefixed variant. Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions