diff options
author | Marco Elver <elver@google.com> | 2020-07-31 11:17:20 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-08-25 01:10:22 +0300 |
commit | a4e74fa5f0d3e2a11f2d0deb522681d219a81426 (patch) | |
tree | 896f5a73f46186634b58584b25787c4ac804ac01 /scripts/bpf_helpers_doc.py | |
parent | 69b2c81bc894606670204f0ae08f406dbcce836d (diff) | |
download | linux-a4e74fa5f0d3e2a11f2d0deb522681d219a81426.tar.xz |
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>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions