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

Commit 3415dd91 authored by Mike Galbraith's avatar Mike Galbraith Committed by Ingo Molnar
Browse files

perfcounters fix section mismatch warning in perf_counter.c::perf_counters_lapic_init()



Fix:

WARNING: arch/x86/kernel/built-in.o(.text+0xdd0f): Section mismatch in reference from the function pmc_generic_enable() to the function .cpuinit.text:perf_counters_lapic_init()
The function pmc_generic_enable() references
the function __cpuinit perf_counters_lapic_init().
This is often because pmc_generic_enable lacks a __cpuinit
annotation or the annotation of perf_counters_lapic_init is wrong.

Signed-off-by: default avatarMike Galbraith <efault@gmx.de>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4b39fd96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -605,7 +605,7 @@ void perf_counter_notify(struct pt_regs *regs)
	local_irq_restore(flags);
}

void __cpuinit perf_counters_lapic_init(int nmi)
void perf_counters_lapic_init(int nmi)
{
	u32 apic_val;