diff options
author | Mike Galbraith <efault@gmx.de> | 2009-01-23 08:16:53 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-23 08:51:22 -0500 |
commit | 3415dd9146c574bffe8f012c096bfc2bc62b9508 (patch) | |
tree | 24a93e39853ddd83d95cff7d85965c229b48f217 /arch/x86/kernel | |
parent | 4b39fd96855254a244f71245b41a91cdecb87d63 (diff) |
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: Mike Galbraith <efault@gmx.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpu/perf_counter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c index a56d4cf92f30..46c436cdd732 100644 --- a/arch/x86/kernel/cpu/perf_counter.c +++ b/arch/x86/kernel/cpu/perf_counter.c | |||
@@ -605,7 +605,7 @@ void perf_counter_notify(struct pt_regs *regs) | |||
605 | local_irq_restore(flags); | 605 | local_irq_restore(flags); |
606 | } | 606 | } |
607 | 607 | ||
608 | void __cpuinit perf_counters_lapic_init(int nmi) | 608 | void perf_counters_lapic_init(int nmi) |
609 | { | 609 | { |
610 | u32 apic_val; | 610 | u32 apic_val; |
611 | 611 | ||