From: Jaswinder Singh Rajput <jaswinder@kernel.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: x86 maintainers <x86@kernel.org>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] x86: fix section mismatch kernel/time.c
Date: Sat, 19 Sep 2009 10:12:42 +0530 [thread overview]
Message-ID: <1253335362.3309.6.camel@ht.satnam> (raw)
In-Reply-To: <1252146555.4969.1.camel@ht.satnam>
[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();
prev parent reply other threads:[~2009-09-19 4:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1253335362.3309.6.camel@ht.satnam \
--to=jaswinder@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox