[PATCH] kernel/events/core.c - make perf_swevent_init_cpu static
From: Valdis KlÄtnieks
Date: Tue Mar 12 2019 - 04:06:47 EST
'make W=1' causes a gcc complaint:
CC kernel/events/core.o
kernel/events/core.c:11877:6: warning: no previous prototype for 'perf_swevent_init_cpu' [-Wmissing-prototypes]
11877 | void perf_swevent_init_cpu(unsigned int cpu)
| ^~~~~~~~~~~~~~~~~~~~~
It's not referenced anyplace else, make it static.
(Other unrelated warnings elided for clarity)
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@xxxxxx>
---
diff --git a/kernel/events/core.c b/kernel/events/core.c
index f7086c388781..77eaa65363d1 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -11874,7 +11874,7 @@ static void __init perf_event_init_all_cpus(void)
}
}
-void perf_swevent_init_cpu(unsigned int cpu)
+static void perf_swevent_init_cpu(unsigned int cpu)
{
struct swevent_htable *swhash = &per_cpu(swevent_htable, cpu);