* [PATCH] x86: fix section mismatch kernel/time.c
@ 2009-09-05 10:29 Jaswinder Singh Rajput
2009-09-19 4:42 ` Jaswinder Singh Rajput
0 siblings, 1 reply; 2+ messages in thread
From: Jaswinder Singh Rajput @ 2009-09-05 10:29 UTC (permalink / raw)
To: Thomas Gleixner, x86 maintainers, LKML
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.
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
arch/x86/kernel/time.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
index fcece00..8c6d692 100644
--- a/arch/x86/kernel/time.c
+++ b/arch/x86/kernel/time.c
@@ -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();
--
1.6.0.6
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] x86: fix section mismatch kernel/time.c
2009-09-05 10:29 [PATCH] x86: fix section mismatch kernel/time.c Jaswinder Singh Rajput
@ 2009-09-19 4:42 ` Jaswinder Singh Rajput
0 siblings, 0 replies; 2+ messages in thread
From: Jaswinder Singh Rajput @ 2009-09-19 4:42 UTC (permalink / raw)
To: Thomas Gleixner; +Cc: x86 maintainers, LKML
[RESENDING]
On Sat, 2009-09-05 at 15:59 +0530, Jaswinder Singh Rajput wrote:
> 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.
>
> Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
> ---
> arch/x86/kernel/time.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
> index fcece00..8c6d692 100644
> --- a/arch/x86/kernel/time.c
> +++ b/arch/x86/kernel/time.c
> @@ -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();
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-19 4:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-05 10:29 [PATCH] x86: fix section mismatch kernel/time.c Jaswinder Singh Rajput
2009-09-19 4:42 ` Jaswinder Singh Rajput
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox