From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934239Ab2C3L0a (ORCPT ); Fri, 30 Mar 2012 07:26:30 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:41062 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933693Ab2C3L0X (ORCPT ); Fri, 30 Mar 2012 07:26:23 -0400 Date: Fri, 30 Mar 2012 19:25:56 +0800 From: Shawn Guo To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: linux-kernel@vger.kernel.org, Andrew Morton , kernel@pengutronix.de, Andrew Victor , Nicolas Ferre , Jean-Christophe Plagniol-Villard , Russell King , Sekhar Nori , Kevin Hilman , Kukjin Kim , Lennert Buytenhek , Nicolas Pitre , Eric Miao , Haojian Zhuang , David Brown , Daniel Walker , Bryan Huntsman , Tony Lindgren , Barry Song , Andrew Lunn , Lucas De Marchi , linux-arm-kernel@lists.infradead.org, davinci-linux-open-source@linux.davincidsp.com, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH 03/17] ARM: mark const init data with __initconst instead of __initdata Message-ID: <20120330112554.GG3254@S2101-09.ap.freescale.net> References: <20120329211131.GA31250@pengutronix.de> <1333055554-31300-3-git-send-email-u.kleine-koenig@pengutronix.de> <20120330061134.GD3254@S2101-09.ap.freescale.net> <20120330095024.GS15647@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <20120330095024.GS15647@pengutronix.de> User-Agent: Mutt/1.5.21 (2010-09-15) Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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