]> 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)
commit6b606480cfaacdb76bd1efcc92b42c7d5280f990
tree904b4456d5cb34d2b6d57a41845c06c176d91270
parent7f57d65edb6279c931d8e460c8947ff8efda2ba9
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]