fix section mismatch warning in perf_counter.c::perf_counters_lapic_init()
PATCH 1/1 fix section mismatch warning in perf_counter.c::perf_counters_lapic_init()
Fix section mismatch in perf_counter.c::perf_counters_lapic_init()
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.
--- arch/x86/kernel/cpu/perf_counter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/cpu/perf_counter.c +1 -1
@@ -605,7 +605,7 @@ void perf_counter_notify(struct pt_regslocal_irq_restore (flags); } -void __cpuinit perf_counters_lapic_init (int nmi) +void perf_counters_lapic_init (int nmi) {u32 apic_val;
Quoted 8 lines · Mike Galbraith
Fix section mismatch in
perf_counter.c::perf_counters_lapic_init()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 functionpmc_generic_enable()references
the function__cpuinitperf_counters_lapic_init().
This is often becausepmc_generic_enablelacks a__cpuinit
annotation or the annotation ofperf_counters_lapic_initis wrong.
Quoted 5 lines
Signed-off-by Mike Galbraith <[email protected]>--- arch/x86/kernel/cpu/perf_counter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
applied tip/perfcounters/core, thanks Mike!
Ingo