kernel_optimize_test/kernel/kcsan
Marco Elver a4e74fa5f0 kcsan: Simplify constant string handling
Simplify checking prefixes and length calculation of constant strings.
For the former, the kernel provides str_has_prefix(), and the latter we
should just use strlen("..") because GCC and Clang have optimizations
that optimize these into constants.

No functional change intended.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
2020-08-24 15:10:22 -07:00
..
atomic.h kcsan: Remove existing special atomic rules 2020-06-29 12:04:48 -07:00
core.c kcsan: Add missing CONFIG_KCSAN_IGNORE_ATOMICS checks 2020-08-24 15:09:57 -07:00
debugfs.c kcsan: Simplify constant string handling 2020-08-24 15:10:22 -07:00
encoding.h kcsan: Prefer __always_inline for fast-path 2020-03-21 09:40:19 +01:00
kcsan-test.c kcsan: Test support for compound instrumentation 2020-08-24 15:09:58 -07:00
kcsan.h kcsan: Improve IRQ state trace reporting 2020-07-31 12:12:03 +02:00
Makefile kcsan: Disable branch tracing in core runtime 2020-06-29 12:04:48 -07:00
report.c kcsan: Simplify constant string handling 2020-08-24 15:10:22 -07:00
selftest.c kcsan: Rename test.c to selftest.c 2020-06-29 12:04:48 -07:00