Skip to contentSkip to conversation

kasan: make get_wild_bug_type() static

PATCH New [email protected] 1 participant 1 message Jul 10, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 69/115 kasan: make get_wild_bug_type() static

From: Colin Ian King <[email protected]>
Subject: kasan: make get_wild_bug_type() static

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?"

---

 mm/kasan/report.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/kasan/report.c renamed from mm/kasan/report.c~kasan-make-function-get_wild_bug_type-static +1 -1
diff -puN mm/kasan/report.c~kasan-make-function-get_wild_bug_type-static mm/kasan/report.c
@@ -107,7 +107,7 @@ static const char *get_shadow_bug_type(s
 	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";
 

_