Skip to content

Commit

Permalink
perfcounters fix section mismatch warning in perf_counter.c::perf_cou…
Browse files Browse the repository at this point in the history
…nters_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: Mike Galbraith <efault@gmx.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Mike Galbraith authored and Ingo Molnar committed Jan 23, 2009
1 parent 4b39fd9 commit 3415dd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/cpu/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3415dd9

Please sign in to comment.