kasan: make function get_wild_bug_type static
Subsystems (3)
PATCH 1/1 kasan: make function get_wild_bug_type static
From: Colin Ian King <[email protected]>
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?"
Signed-off-by Colin Ian King <[email protected]>
--- mm/kasan/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/kasan/report.c +1 -1
@@ -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" ;
Signature · 1 line
2.11.0
Quoted 9 lines · Colin King
From: Colin Ian King <[email protected]>
The helper function
get_wild_bug_typedoes 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?"Signed-off-by Colin Ian King <[email protected]>
Acked-by Dmitry Vyukov <[email protected]>
Quoted 20 lines
--- mm/kasan/report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)mm/kasan/report.c +1
-2@@ -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" ; --2.11.0