lib/ubsan.c: Mark type_check_kinds with static keyword
Subsystems (2)
PATCH 1/1 lib/ubsan.c: Mark type_check_kinds with static keyword
Fix the following sparse warning:
lib/ubsan.c:20:12: warning: symbol 'type_check_kinds' was not declared. Should it be static?
Signed-off-by Zou Wei <[email protected]>
--- lib/ubsan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/ubsan.c +1 -1
@@ -17,7 +17,7 @@#include "ubsan.h" -const char *type_check_kinds[] = { +static const char *type_check_kinds[] = {"load of" ,"store to" ,"reference binding to" ,
Signature · 1 line
2.6.2
Quoted 5 lines · Zou Wei
Fix the following sparse warning:
lib/ubsan.c:20:12: warning: symbol 'type_check_kinds' was not declared. Should it be static?Signed-off-by Zou Wei <[email protected]>
Reviewed-by Kees Cook <[email protected]>
Signature · 1 line
Kees Cook