ubsan: Remove unused function
Subsystems (2)
PATCH 1/1 ubsan: Remove unused function
The function are defined in the test_ubsan.c file, but not called elsewhere, so delete the unused function.
lib/test_ubsan.c:137:28: warning: unused variable 'skip_ubsan_array'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- lib/test_ubsan.c | 5 ----- 1 file changed, 5 deletions(-)
lib/test_ubsan.c +0 -5
@@ -133,11 +133,6 @@ static const test_ubsan_fp test_ubsan_array[] = { test_ubsan_misaligned_access, }; -/* Excluded because they Oops the module. */ -static const test_ubsan_fp skip_ubsan_array[] = { - test_ubsan_divrem_overflow, -}; -static int __init test_ubsan_init (void ) {unsigned int i;
Signature · 1 line
2.20.1.7.g153144c
Quoted 17 lines · Jiapeng Chong
The function are defined in the
test_ubsan.cfile, but not called elsewhere, so delete the unused function.
lib/test_ubsan.c:137:28: warning: unused variable 'skip_ubsan_array'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- lib/test_ubsan.c | 5 ----- 1 file changed, 5 deletions(-)lib/test_ubsan.c +0
-0
lib/test_ubsan.c static const test_ubsan_fp test_ubsan_array[] = { · line 139
Quoted 7 lines
lib/test_ubsan.c +0
-4@@ -133,11 +133,6 @@ static const test_ubsan_fp test_ubsan_array[] = { test_ubsan_misaligned_access, }; -/* Excluded because they Oops the module. */ -static const test_ubsan_fp skip_ubsan_array[] = { - test_ubsan_divrem_overflow, -};
But then I'll get warnings about test_ubsan_divrem_overflow() being defined and not used. :)
-Kees
Quoted 7 lines
lib/test_ubsan.c +0
-1-static int __init test_ubsan_init (void ) {unsigned int i;Signature · 1 line
2.20.1.7.g153144c
Signature · 1 line
Kees Cook