Marco Elver 116af35e38 kcsan: Ignore GCC 11+ warnings about TSan runtime support
GCC 11 has introduced a new warning option, -Wtsan [1], to warn about
unsupported operations in the TSan runtime. But KCSAN != TSan runtime,
so none of the warnings apply.

[1] https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gcc/Warning-Options.html

Ignore the warnings.

Currently the warning only fires in the test for __atomic_thread_fence():

kernel/kcsan/kcsan_test.c: In function ‘test_atomic_builtins’:
kernel/kcsan/kcsan_test.c🔢17: warning: ‘atomic_thread_fence’ is not supported with ‘-fsanitize=thread’ [-Wtsan]
 1234 |                 __atomic_thread_fence(__ATOMIC_SEQ_CST);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

which exists to ensure the KCSAN runtime keeps supporting the builtin
instrumentation.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2021-12-09 16:42:27 -08:00
..
2021-11-02 11:33:15 -07:00
2021-09-03 15:33:47 -07:00
2021-11-08 09:15:45 -08:00
2021-04-26 08:38:10 -07:00
2021-02-26 09:41:05 -08:00
2021-05-02 00:43:35 +09:00
2021-11-02 06:20:58 -07:00
2020-12-08 23:30:04 +09:00
2021-11-01 16:33:53 -07:00
2020-12-08 23:30:04 +09:00
2021-05-03 17:23:06 -06:00