* [patch] fix section mismatch warning in perf_counter.c::perf_counters_lapic_init()
@ 2009-01-23 13:16 Mike Galbraith
2009-01-23 13:51 ` Ingo Molnar
0 siblings, 1 reply; 2+ messages in thread
From: Mike Galbraith @ 2009-01-23 13:16 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Peter Zijlstra, LKML
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.
Signed-off-by: Mike Galbraith <efault@gmx.de>
---
arch/x86/kernel/cpu/perf_counter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/arch/x86/kernel/cpu/perf_counter.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/cpu/perf_counter.c
+++ linux-2.6/arch/x86/kernel/cpu/perf_counter.c
@@ -605,7 +605,7 @@ void perf_counter_notify(struct pt_regs
local_irq_restore(flags);
}
-void __cpuinit perf_counters_lapic_init(int nmi)
+void perf_counters_lapic_init(int nmi)
{
u32 apic_val;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] fix section mismatch warning in perf_counter.c::perf_counters_lapic_init()
2009-01-23 13:16 [patch] fix section mismatch warning in perf_counter.c::perf_counters_lapic_init() Mike Galbraith
@ 2009-01-23 13:51 ` Ingo Molnar
0 siblings, 0 replies; 2+ messages in thread
From: Ingo Molnar @ 2009-01-23 13:51 UTC (permalink / raw)
To: Mike Galbraith; +Cc: Peter Zijlstra, LKML
* Mike Galbraith <efault@gmx.de> wrote:
> 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.
>
> Signed-off-by: Mike Galbraith <efault@gmx.de>
>
> ---
> arch/x86/kernel/cpu/perf_counter.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
applied tip/perfcounters/core, thanks Mike!
Ingo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-23 13:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-23 13:16 [patch] fix section mismatch warning in perf_counter.c::perf_counters_lapic_init() Mike Galbraith
2009-01-23 13:51 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox