Re: (subset) [PATCH 02/34] ubsan: fix unused variable warning in test module

2024-04-03 Thread Kees Cook
On Wed, 03 Apr 2024 10:06:20 +0200, Arnd Bergmann wrote: > 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_arr

[PATCH 02/34] ubsan: fix unused variable warning in test module

2024-04-03 Thread Arnd Bergmann
From: Arnd Bergmann 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