From: "andrzej zaborowski" <balrogg@gmail.com>
To: Vivien Chappelier <vivien.chappelier@free.fr>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH 12/12] Move omap_timer to the initdata section.
Date: Sat, 9 Jun 2007 21:20:04 +0200 [thread overview]
Message-ID: <fb249edb0706091220n16e50bd4pda35bca25e349adc@mail.gmail.com> (raw)
In-Reply-To: <20070609184751.GL1889@varda>
Hi,
On 09/06/07, Vivien Chappelier <vivien.chappelier@free.fr> wrote:
> This patch fixes a warning due to omap_timer not belonging to the __initdata
> section as it should.
>
> Signed-off-by: Vivien Chappelier <vivien.chappelier@free.fr>
>
> ---
> arch/arm/mach-omap1/time.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-omap1/time.c b/arch/arm/mach-omap1/time.c
> 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,
> };
> --
> 1.5.1.3
This was already proposed a couple of times (for example here:
http://linux.omap.com/pipermail/linux-omap-open-source/2007-May/010075.html)
but it is wrong because omap_timer is used a lot after initdata is
discarded. One possible solution is leaving .init uninitialised, and
assigning it somewhere during the arch initialisation, with something
like:
omap_timer.init = omap_timer_init;
But maybe it's better to just ignore the reference to another section,
as Tony suggested.
next prev parent reply other threads:[~2007-06-09 19:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-09 18:47 [PATCH 12/12] Move omap_timer to the initdata section Vivien Chappelier
2007-06-09 19:20 ` andrzej zaborowski [this message]
2007-06-09 21:13 ` Vivien Chappelier
-- strict thread matches above, loose matches on Subject: below --
2007-06-09 17:35 Vivien Chappelier
2007-06-12 13:31 ` 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=fb249edb0706091220n16e50bd4pda35bca25e349adc@mail.gmail.com \
--to=balrogg@gmail.com \
--cc=linux-omap-open-source@linux.omap.com \
--cc=vivien.chappelier@free.fr \
/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