summaryrefslogtreecommitdiffstats
path: root/lib/test_vmalloc.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2024-04-03 10:06:20 +0200
committerKees Cook <keescook@chromium.org>2024-04-03 14:35:57 -0700
commitbbda3ba626b9f57ff6063058877eca856f5b734d (patch)
tree0c3461f98e3d1b2d9d026078f776564c78ae9fdc /lib/test_vmalloc.c
parente7d24c0aa8e678f41457d1304e2091cac6fd1a2e (diff)
downloadlinux-stable-bbda3ba626b9f57ff6063058877eca856f5b734d.tar.gz
linux-stable-bbda3ba626b9f57ff6063058877eca856f5b734d.tar.bz2
linux-stable-bbda3ba626b9f57ff6063058877eca856f5b734d.zip
ubsan: fix unused variable warning in test module
This is one of the drivers with an unused variable that is marked 'const'. Adding a __used annotation here avoids the warning and lets us enable the option by default: lib/test_ubsan.c:137:28: error: unused variable 'skip_ubsan_array' [-Werror,-Wunused-const-variable] Fixes: 4a26f49b7b3d ("ubsan: expand tests and reporting") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20240403080702.3509288-3-arnd@kernel.org Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'lib/test_vmalloc.c')
0 files changed, 0 insertions, 0 deletions