Skip to contentSkip to conversation

x86: fix section mismatch kernel/time.c

PATCH In review Jaswinder Singh Rajput 1 participant 2 messages Sep 5, 2009 – Sep 19, 2009 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix section mismatch kernel/time.c

Commit dd0a70c8 move tsc_init to late_time_init which leads to :

WARNING: arch/x86/built-in.o(.text+0x397f): Section mismatch in reference from the function x86_late_time_init() to the function .init.text:tsc_init() The function x86_late_time_init() references
the function __init tsc_init().
This is often because x86_late_time_init lacks a __init

So adding __init to x86_late_time_init() fixes this mismatch.

---
 arch/x86/kernel/time.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/time.c +1 -1
index fcece00..8c6d692 100644
@@ -105,7 +105,7 @@ void __init hpet_time_init(void)
 	setup_default_timer_irq();
 }
 
-static void x86_late_time_init(void)
+static void __init x86_late_time_init(void)
 {
 	x86_init.timers.timer_init();
 	tsc_init();
Signature · 1 line
1.6.0.6
#1 lore raw

[RESENDING]

Quoted 27 lines · Jaswinder Singh Rajput

Commit dd0a70c8 move tsc_init to late_time_init which leads to :

WARNING: arch/x86/built-in.o(.text+0x397f): Section mismatch in reference from the function x86_late_time_init() to the function .init.text:tsc_init() The function x86_late_time_init() references
the function __init tsc_init().
This is often because x86_late_time_init lacks a __init

So adding __init to x86_late_time_init() fixes this mismatch.

---
 arch/x86/kernel/time.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/time.c +1 -1
index fcece00..8c6d692 100644
@@ -105,7 +105,7 @@ void __init hpet_time_init(void)
 	setup_default_timer_irq();
 }
 
-static void x86_late_time_init(void)
+static void __init x86_late_time_init(void)
 {
 	x86_init.timers.timer_init();
 	tsc_init();