kcsan: Simplify constant string handling
authorMarco Elver <elver@google.com>
Fri, 31 Jul 2020 08:17:20 +0000 (10:17 +0200)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 24 Aug 2020 22:10:22 +0000 (15:10 -0700)
commita4e74fa5f0d3e2a11f2d0deb522681d219a81426
tree896f5a73f46186634b58584b25787c4ac804ac01
parent69b2c81bc894606670204f0ae08f406dbcce836d
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>
kernel/kcsan/debugfs.c
kernel/kcsan/report.c