Message from discussion
ARM: mark const init data with __initconst instead of __initdata
Received: by 10.68.74.201 with SMTP id w9mr2494437pbv.0.1333088402955;
Thu, 29 Mar 2012 23:20:02 -0700 (PDT)
Path: z9ni17671pbe.0!nntp.google.com!news2.google.com!goblin3!goblin1!goblin.stu.neva.ru!feed.xsnews.nl!border-3.ams.xsnews.nl!newsfeed.x-privat.org!bofh.it!news.nic.it!robomod
From: Shawn Guo <shawn....@linaro.org>
Newsgroups: linux.kernel
Subject: Re: [PATCH 03/17] ARM: mark const init data with __initconst instead of __initdata
Date: Fri, 30 Mar 2012 08:20:01 +0200
Message-ID: <iKDlL-6tt-9@gated-at.bofh.it>
References: <iKuVb-GP-3@gated-at.bofh.it> <iKuVe-GP-51@gated-at.bofh.it>
X-Original-To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?=
<u.kleine-koe...@pengutronix.de>
d=google.com; s=20120113;
h=date:from:to:cc:subject:message-id:references:mime-version
:in-reply-to:user-agent:x-gm-message-state:content-type
:content-disposition:content-transfer-encoding;
bh=NXKAPw5/j3jbES/HhzKJENn1F8OqEeo/gphVExHHp/M=;
b=ONkhZvp2kK85Gn47yvmwYu5TGSqqYOWObq7VdMu7kpmM2kKc8KjF9qjBhZX7WPg1Zd
xepZn6iASV0cw1SorLgEfUS5f9ArIpcOxdxNZlXDXsBrZEaVrvXI1todcEN7VObgrLB/
5r6CIi9s3fGEpdjy8g/P6ZaADTV1JdO5dDkzc2pzG9ai5Ppdy7y6QY9ZctTn6ngAafLt
MMxy6rHp9WFm5ExeIfx+7E4/RMt7IJXAqhlzChsX3FFrx1fUFwsXMq33vYROVWIU31mt
7/iThThlQ0fYkgc55zKNwNQhpzEws9nuL5jhsb4OVR2/ubHxgG2laILQJeuAKR7fXtj0
FrpA==
MIME-Version: 1.0
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Gm-Message-State: ALoCoQl54ysiTJUqw7zBtEE97Jg0oFIyssXDkkyuQkLQ4wnceFeg9+w3MOzCOy901rOBcc22BwVR
Sender: robo...@news.nic.it
List-ID: <linux-kernel.vger.kernel.org>
X-Mailing-List: linux-kernel@vger.kernel.org
Approved: robo...@news.nic.it
Lines: 30
Organization: linux.* mail to news gateway
X-Original-Cc: linux-ker...@vger.kernel.org,
Andrew Morton <a...@linux-foundation.org>,
ker...@pengutronix.de, Andrew Victor <li...@maxim.org.za>,
Nicolas Ferre <nicolas.fe...@atmel.com>,
Jean-Christophe Plagniol-Villard <plagn...@jcrosoft.com>,
Russell King <li...@arm.linux.org.uk>,
Sekhar Nori <nsek...@ti.com>, Kevin Hilman <khil...@ti.com>,
Kukjin Kim <kgene....@samsung.com>,
Lennert Buytenhek <ker...@wantstofly.org>,
Nicolas Pitre <n...@fluxnic.net>,
Eric Miao <eric.y.m...@gmail.com>,
Haojian Zhuang <haojian.zhu...@gmail.com>,
David Brown <dav...@codeaurora.org>,
Daniel Walker <dwal...@fifo99.com>,
Bryan Huntsman <bry...@codeaurora.org>,
Tony Lindgren <t...@atomide.com>,
Barry Song <baohua.s...@csr.com>, Andrew Lunn <and...@lunn.ch>,
Lucas De Marchi <lucas.demar...@profusion.mobi>,
linux-arm-ker...@lists.infradead.org,
davinci-linux-open-sou...@linux.davincidsp.com,
linux-samsung-...@vger.kernel.org, linux-arm-...@vger.kernel.org,
linux-o...@vger.kernel.org
X-Original-Date: Fri, 30 Mar 2012 14:11:36 +0800
X-Original-Message-ID: <20120330061134.GD3...@S2101-09.ap.freescale.net>
X-Original-References: <20120329211131.GA31...@pengutronix.de>
<1333055554-31300-3-git-send-email-u.kleine-koe...@pengutronix.de>
X-Original-Sender: linux-kernel-ow...@vger.kernel.org
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
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.
--
Regards,
Shawn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/