Commit d3c22797 authored by Zou Wei's avatar Zou Wei Committed by Linus Torvalds

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?

[akpm@linux-foundation.org: make it `static const char * const' while we're in there]

Link: https://lkml.kernel.org/r/1607602638-79584-1-git-send-email-zou_wei@huawei.comSigned-off-by: default avatarZou Wei <zou_wei@huawei.com>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c1cb05e7
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "ubsan.h" #include "ubsan.h"
const char *type_check_kinds[] = { static const char * const type_check_kinds[] = {
"load of", "load of",
"store to", "store to",
"reference binding to", "reference binding to",
......
Markdown is supported
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