]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f32d4d8bac19e66d25c6f4c515f301c6ddf8602
tree904b4456d5cb34d2b6d57a41845c06c176d91270
parentf32a4a4868dcd060fa24bb3734f48df84a838e85
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]