xtensa: enable KCSAN
authorMax Filippov <jcmvbkbc@gmail.com>
Sat, 5 Oct 2019 06:33:31 +0000 (23:33 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 May 2022 02:51:22 +0000 (19:51 -0700)
commit725aea873261e8d986e527838fde2a721f0962d8
tree904b4456d5cb34d2b6d57a41845c06c176d91270
parent507185695e93c70aced2f419892bc2ab9387b324
xtensa: enable KCSAN

Prefix arch-specific barrier macros with '__' to make use of instrumented
generic macros.
Prefix arch-specific bitops with 'arch_' to make use of instrumented
generic functions.
Provide stubs for 64-bit atomics when building with KCSAN.
Disable KCSAN instrumentation in arch/xtensa/boot.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Marco Elver <elver@google.com>
arch/xtensa/Kconfig
arch/xtensa/boot/lib/Makefile
arch/xtensa/include/asm/barrier.h
arch/xtensa/include/asm/bitops.h
arch/xtensa/lib/Makefile
arch/xtensa/lib/kcsan-stubs.c [new file with mode: 0644]