kcsan: Only test clear_bit_unlock_is_negative_byte if arch defines it
authorMarco Elver <elver@google.com>
Mon, 6 Dec 2021 06:41:51 +0000 (07:41 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Fri, 10 Dec 2021 00:42:29 +0000 (16:42 -0800)
commitb473a3891c46393e9c4ccb4e3197d7fb259c7100
tree9389aa066707961d219283dc1c005d34743bf600
parente3d2b72bbf3c580b0c5c96385777c2f483a45ab5
kcsan: Only test clear_bit_unlock_is_negative_byte if arch defines it

Some architectures do not define clear_bit_unlock_is_negative_byte().
Only test it when it is actually defined (similar to other usage, such
as in lib/test_kasan.c).

Link: https://lkml.kernel.org/r/202112050757.x67rHnFU-lkp@intel.com
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/kcsan/kcsan_test.c
kernel/kcsan/selftest.c