diff options
author | Zou Wei <zou_wei@huawei.com> | 2020-12-15 20:46:50 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-15 22:46:19 -0800 |
commit | d3c227978a130ee18716d3496cf82621d8cda28c (patch) | |
tree | c313adcac27c95b8e0012d9efdfaa9c6c06d082c /lib | |
parent | c1cb05e77f8e3ec89eec7bed64af07cd20ed24de (diff) | |
download | linux-d3c227978a130ee18716d3496cf82621d8cda28c.tar.gz linux-d3c227978a130ee18716d3496cf82621d8cda28c.tar.bz2 linux-d3c227978a130ee18716d3496cf82621d8cda28c.zip |
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.com
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ubsan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ubsan.c b/lib/ubsan.c index cb9af3f6b77e..3e3352f3d0da 100644 --- a/lib/ubsan.c +++ b/lib/ubsan.c @@ -17,7 +17,7 @@ #include "ubsan.h" -const char *type_check_kinds[] = { +static const char * const type_check_kinds[] = { "load of", "store to", "reference binding to", |