Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit bbda3ba6 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Kees Cook
Browse files

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: 4a26f49b

 ("ubsan: expand tests and reporting")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240403080702.3509288-3-arnd@kernel.org


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent e7d24c0a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment