x86: fix section mismatch kernel/time.c
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
@@ -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
[RESENDING]
Quoted 27 lines · Jaswinder Singh Rajput
Commit
dd0a70c8movetsc_inittolate_time_initwhich 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 functionx86_late_time_init()references
the function__inittsc_init().
This is often becausex86_late_time_initlacks a__initSo adding
__inittox86_late_time_init()fixes this mismatch.Signed-off-by Jaswinder Singh Rajput <[email protected]>--- arch/x86/kernel/time.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/x86/kernel/time.c +1
-1@@ -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 ();