Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d18bf422 authored by Valdis Kletnieks's avatar Valdis Kletnieks Committed by Ingo Molnar
Browse files

perf/core: Make perf_swevent_init_cpu() static



'make W=1' causes GCC to complain:

  kernel/events/core.c:11877:6: warning: no previous prototype for 'perf_swevent_init_cpu' [-Wmissing-prototypes]

It's not referenced anywhere else, make it static.

Signed-off-by: default avatarValdis Kletnieks <valdis.kletnieks@vt.edu>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/28974.1552377997@turing-police


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent f80deefa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11878,7 +11878,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);