* [PATCH] x86, tsc: fix section mismatch warning
@ 2008-08-10 22:07 Marcin Slusarz
2008-08-11 5:07 ` H. Peter Anvin
0 siblings, 1 reply; 3+ messages in thread
From: Marcin Slusarz @ 2008-08-10 22:07 UTC (permalink / raw)
To: LKML; +Cc: tglx, mingo, hpa
WARNING: vmlinux.o(.text+0x7950): Section mismatch in reference from the function native_calibrate_tsc() to the function .init.text:tsc_read_refs()
The function native_calibrate_tsc() references
the function __init tsc_read_refs().
This is often because native_calibrate_tsc lacks a __init
annotation or the annotation of tsc_read_refs is wrong.
tsc_read_refs is called from native_calibrate_tsc which is not __init
and native_calibrate_tsc cannot be marked __init
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
---
arch/x86/kernel/tsc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index 7603c05..46af716 100644
--- a/arch/x86/kernel/tsc.c
+++ b/arch/x86/kernel/tsc.c
@@ -104,7 +104,7 @@ __setup("notsc", notsc_setup);
/*
* Read TSC and the reference counters. Take care of SMI disturbance
*/
-static u64 __init tsc_read_refs(u64 *pm, u64 *hpet)
+static u64 tsc_read_refs(u64 *pm, u64 *hpet)
{
u64 t1, t2;
int i;
--
1.5.4.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] x86, tsc: fix section mismatch warning
2008-08-10 22:07 [PATCH] x86, tsc: fix section mismatch warning Marcin Slusarz
@ 2008-08-11 5:07 ` H. Peter Anvin
2008-08-17 19:10 ` Adrian Bunk
0 siblings, 1 reply; 3+ messages in thread
From: H. Peter Anvin @ 2008-08-11 5:07 UTC (permalink / raw)
To: Marcin Slusarz; +Cc: LKML, tglx, mingo
Thanks!
I have pulled these four patches into tip:x86/cleanups.
-hpa
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86, tsc: fix section mismatch warning
2008-08-11 5:07 ` H. Peter Anvin
@ 2008-08-17 19:10 ` Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2008-08-17 19:10 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Marcin Slusarz, LKML, tglx, mingo
On Sun, Aug 10, 2008 at 10:07:31PM -0700, H. Peter Anvin wrote:
> Thanks!
>
> I have pulled these four patches into tip:x86/cleanups.
Section fixes are not cleanups but bugfixes.
E.g. this patch by Marcin fixes the following 2.6.27 regression
(that was found 4 days after you applied his patch):
http://bugzilla.kernel.org/show_bug.cgi?id=11330
Can you make sure that Marcin's bugfixes makes it into 2.6.27?
> -hpa
TIA
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-17 19:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-10 22:07 [PATCH] x86, tsc: fix section mismatch warning Marcin Slusarz
2008-08-11 5:07 ` H. Peter Anvin
2008-08-17 19:10 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox