From: Tony Lindgren <tony@atomide.com>
To: Kyungmin Park <kmpark@infradead.org>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] Fix section mismatch: reference to .init.text: from .text warning
Date: Thu, 17 May 2007 10:38:21 -0700 [thread overview]
Message-ID: <20070517173820.GA8556@atomide.com> (raw)
In-Reply-To: <000001c79814$fec527d0$e1ac580a@swcenter.sec.samsung.co.kr>
* Kyungmin Park <kmpark@infradead.org> [070516 16:51]:
> Fix section mismatch: reference to .init.text: from .text warning of omap_timer
>
> I tested with OMAP2 only, but OMAP1 also has same warning.
>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> --
>
> index 3705d20..0ba739c 100644
> --- a/arch/arm/mach-omap1/time.c
> +++ b/arch/arm/mach-omap1/time.c
> @@ -289,6 +289,6 @@ static void __init omap_timer_init(void)
> omap_init_clocksource(rate);
> }
>
> -struct sys_timer omap_timer = {
> +struct sys_timer omap_timer __initdata = {
> .init = omap_timer_init,
> };
> diff --git a/arch/arm/mach-omap2/timer-gp.c b/arch/arm/mach-omap2/timer-gp.c
> index 8f380a1..948d7ec 100644
> --- a/arch/arm/mach-omap2/timer-gp.c
> +++ b/arch/arm/mach-omap2/timer-gp.c
> @@ -175,6 +175,6 @@ static void __init omap2_gp_timer_init(void)
> omap2_gp_clocksource_init();
> }
>
> -struct sys_timer omap_timer = {
> +struct sys_timer omap_timer __initdata = {
> .init = omap2_gp_timer_init,
> };
> diff --git a/arch/arm/plat-omap/timer32k.c b/arch/arm/plat-omap/timer32k.c
> index 2474597..e7e1960 100644
> --- a/arch/arm/plat-omap/timer32k.c
> +++ b/arch/arm/plat-omap/timer32k.c
> @@ -262,6 +262,6 @@ static void __init omap_timer_init(void)
> omap_init_32k_timer();
> }
>
> -struct sys_timer omap_timer = {
> +struct sys_timer omap_timer __initdata = {
> .init = omap_timer_init,
> };
>
We cannot mark sys_timer as __initdata as it is used for all
timer stuff. There is a patch on linux-arm-kernel to ignore
sys_timer for the check. So these warnings may not be correct
always.
BTW, we should check that struct omap_board_config_kernel
entries really can be __initdata from modules point of view.
Regards,
Tony
next prev parent reply other threads:[~2007-05-17 17:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-16 23:50 [PATCH] Fix section mismatch: reference to .init.text: from .text warning Kyungmin Park
2007-05-17 17:38 ` Tony Lindgren [this message]
2007-05-25 18:25 ` Dirk Behme
2007-05-25 18:42 ` Tony Lindgren
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=20070517173820.GA8556@atomide.com \
--to=tony@atomide.com \
--cc=kmpark@infradead.org \
--cc=linux-omap-open-source@linux.omap.com \
/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