kcsan: Add __no_kcsan function attribute
authorMarco Elver <elver@google.com>
Thu, 12 Dec 2019 00:07:09 +0000 (01:07 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 7 Jan 2020 15:47:23 +0000 (07:47 -0800)
commite33f9a169747880a008dd5e7b934fc592e91cd63
treeb5c00fc4c864945c6531a93d1802d79308e5ea24
parent7161177481d521e725a7bc6c9308ac2968fee038
kcsan: Add __no_kcsan function attribute

Since the use of -fsanitize=thread is an implementation detail of KCSAN,
the name __no_sanitize_thread could be misleading if used widely.
Instead, we introduce the __no_kcsan attribute which is shorter and more
accurate in the context of KCSAN.

This matches the attribute name __no_kcsan_or_inline. The use of
__kcsan_or_inline itself is still required for __always_inline functions
to retain compatibility with older compilers.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/compiler-gcc.h
include/linux/compiler.h