]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
perfcounters fix section mismatch warning in perf_counter.c::perf_counters_lapic_init()
authorMike Galbraith <efault@gmx.de>
Fri, 23 Jan 2009 13:16:53 +0000 (14:16 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 23 Jan 2009 13:51:22 +0000 (14:51 +0100)
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: Mike Galbraith <efault@gmx.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c

index a56d4cf92f30eb38524cd477c657de9019aa0e81..46c436cdd732b6f837aef231fe9bea3612858838 100644 (file)
@@ -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;