Re: [PATCH 03/17] ARM: mark const init data with __initconst instead of __initdata
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
- Subject: Re: [PATCH 03/17] ARM: mark const init data with __initconst instead of __initdata
- From: Shawn Guo <shawn.guo@xxxxxxxxxx>
- Date: Fri, 30 Mar 2012 19:25:56 +0800
- Cc: linux-kernel@xxxxxxxxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, kernel@xxxxxxxxxxxxxx, Andrew Victor <linux@xxxxxxxxxxxx>, Nicolas Ferre <nicolas.ferre@xxxxxxxxx>, Jean-Christophe Plagniol-Villard <plagnioj@xxxxxxxxxxxx>, Russell King <linux@xxxxxxxxxxxxxxxx>, Sekhar Nori <nsekhar@xxxxxx>, Kevin Hilman <khilman@xxxxxx>, Kukjin Kim <kgene.kim@xxxxxxxxxxx>, Lennert Buytenhek <kernel@xxxxxxxxxxxxxx>, Nicolas Pitre <nico@xxxxxxxxxxx>, Eric Miao <eric.y.miao@xxxxxxxxx>, Haojian Zhuang <haojian.zhuang@xxxxxxxxx>, David Brown <davidb@xxxxxxxxxxxxxx>, Daniel Walker <dwalker@xxxxxxxxxx>, Bryan Huntsman <bryanh@xxxxxxxxxxxxxx>, Tony Lindgren <tony@xxxxxxxxxxx>, Barry Song <baohua.song@xxxxxxx>, Andrew Lunn <andrew@xxxxxxx>, Lucas De Marchi <lucas.demarchi@xxxxxxxxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, davinci-linux-open-source@xxxxxxxxxxxxxxxxxxxx, linux-samsung-soc@xxxxxxxxxxxxxxx, linux-arm-msm@xxxxxxxxxxxxxxx, linux-omap@xxxxxxxxxxxxxxx
- In-reply-to: <20120330095024.GS15647@pengutronix.de>
- User-agent: Mutt/1.5.21 (2010-09-15)
On Fri, Mar 30, 2012 at 11:50:24AM +0200, Uwe Kleine-König wrote:
> Hello Shawn,
>
> On Fri, Mar 30, 2012 at 02:11:36PM +0800, Shawn Guo wrote:
> > On Thu, Mar 29, 2012 at 11:12:20PM +0200, Uwe Kleine-König wrote:
> > ...
> > > diff --git a/arch/arm/mach-imx/imx51-dt.c b/arch/arm/mach-imx/imx51-dt.c
> > > index 5cca573..7e00748 100644
> > > --- a/arch/arm/mach-imx/imx51-dt.c
> > > +++ b/arch/arm/mach-imx/imx51-dt.c
> > > @@ -102,7 +102,7 @@ static struct sys_timer imx51_timer = {
> > > .init = imx51_timer_init,
> > > };
> > >
> > > -static const char *imx51_dt_board_compat[] __initdata = {
> > > +static const char *imx51_dt_board_compat[] __initconst = {
> > > "fsl,imx51-babbage",
> > > "fsl,imx51",
> > > NULL
> >
> > CC arch/arm/mach-imx/imx51-dt.o
> > arch/arm/mach-imx/imx51-dt.c:105:20: error: imx51_dt_board_compat causes a section type conflict
> > make[2]: *** [arch/arm/mach-imx/imx51-dt.o] Error 1
> >
> > I do not understand why though.
> that's because the strings are constant, but the array is not.
Ah, yes. It indeed could be overlooked :)
--
Regards,
Shawn
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux ARM Kernel]
[Linux ARM]
[Linux Omap]
[Fedora ARM]
[Linux for Sparc]
[IETF Annouce]
[Security]
[Bugtraq]
[Linux OMAP]
[Linux MIPS]
[ECOS]
[Asterisk Internet PBX]
[Linux API]