projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5bd62c
)
kasan: make get_wild_bug_type() static
author
Colin Ian King
<
[email protected]
>
Mon, 10 Jul 2017 22:50:40 +0000
(15:50 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 10 Jul 2017 23:32:33 +0000
(16:32 -0700)
The helper function get_wild_bug_type() does not need to be in global
scope, so make it static.
Cleans up sparse warning:
"symbol 'get_wild_bug_type' was not declared. Should it be static?"
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Colin Ian King <
[email protected]
>
Acked-by: Dmitry Vyukov <
[email protected]
>
Cc: Andrey Ryabinin <
[email protected]
>
Cc: Alexander Potapenko <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/kasan/report.c
patch
|
blob
|
history
diff --git
a/mm/kasan/report.c
b/mm/kasan/report.c
index beee0e980e2dd3385b007fbcb119f599207dacc0..04bb1d3eb9ece0480182f2c738ed9d827fea3c62 100644
(file)
--- a/
mm/kasan/report.c
+++ b/
mm/kasan/report.c
@@
-107,7
+107,7
@@
static const char *get_shadow_bug_type(struct kasan_access_info *info)
return bug_type;
}
-const char *get_wild_bug_type(struct kasan_access_info *info)
+
static
const char *get_wild_bug_type(struct kasan_access_info *info)
{
const char *bug_type = "unknown-crash";