From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sekhar Nori Subject: Re: [PATCH v2 02/15] ARM: mark const init data with __initconst instead of __initdata Date: Wed, 11 Apr 2012 17:04:15 +0530 Message-ID: <4F856C37.2040304@ti.com> References: <20120330200358.GV15647@pengutronix.de> <1333137905-13809-2-git-send-email-u.kleine-koenig@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from comal.ext.ti.com ([198.47.26.152]:49054 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751437Ab2DKLfY (ORCPT ); Wed, 11 Apr 2012 07:35:24 -0400 In-Reply-To: <1333137905-13809-2-git-send-email-u.kleine-koenig@pengutronix.de> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: =?UTF-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= Cc: linux-kernel@vger.kernel.org, Andrew Morton , kernel@pengutronix.de, Andrew Victor , Nicolas Ferre , Jean-Christophe Plagniol-Villard , Russell King , Kevin Hilman , Kukjin Kim , Shawn Guo , 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.co Hi Uwe, On 3/31/2012 1:34 AM, Uwe Kleine-K=C3=B6nig wrote: > As long as there is no other non-const variable marked __initdata in = the > same compilation unit it doesn't hurt. If there were one however > compilation would fail with >=20 > error: $variablename causes a section type conflict >=20 > because a section containing const variables is marked read only and = so > cannot contain non-const variables. >=20 > Signed-off-by: Uwe Kleine-K=C3=B6nig =46or the DaVinci parts, Acked-by: Sekhar Nori Thanks, Sekhar From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754184Ab2DKLf1 (ORCPT ); Wed, 11 Apr 2012 07:35:27 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:49054 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751437Ab2DKLfY (ORCPT ); Wed, 11 Apr 2012 07:35:24 -0400 Message-ID: <4F856C37.2040304@ti.com> Date: Wed, 11 Apr 2012 17:04:15 +0530 From: Sekhar Nori User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: =?UTF-8?B?VXdlIEtsZWluZS1Lw7ZuaWc=?= CC: , Andrew Morton , , Andrew Victor , Nicolas Ferre , Jean-Christophe Plagniol-Villard , Russell King , Kevin Hilman , Kukjin Kim , Shawn Guo , Lennert Buytenhek , Nicolas Pitre , Eric Miao , Haojian Zhuang , David Brown , Daniel Walker , Bryan Huntsman , Tony Lindgren , Barry Song , Andrew Lunn , Lucas De Marchi , , , , , Subject: Re: [PATCH v2 02/15] ARM: mark const init data with __initconst instead of __initdata References: <20120330200358.GV15647@pengutronix.de> <1333137905-13809-2-git-send-email-u.kleine-koenig@pengutronix.de> In-Reply-To: <1333137905-13809-2-git-send-email-u.kleine-koenig@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Uwe, On 3/31/2012 1:34 AM, Uwe Kleine-König wrote: > As long as there is no other non-const variable marked __initdata in the > same compilation unit it doesn't hurt. If there were one however > compilation would fail with > > error: $variablename causes a section type conflict > > because a section containing const variables is marked read only and so > cannot contain non-const variables. > > Signed-off-by: Uwe Kleine-König For the DaVinci parts, Acked-by: Sekhar Nori Thanks, Sekhar From mboxrd@z Thu Jan 1 00:00:00 1970 From: nsekhar@ti.com (Sekhar Nori) Date: Wed, 11 Apr 2012 17:04:15 +0530 Subject: [PATCH v2 02/15] ARM: mark const init data with __initconst instead of __initdata In-Reply-To: <1333137905-13809-2-git-send-email-u.kleine-koenig@pengutronix.de> References: <20120330200358.GV15647@pengutronix.de> <1333137905-13809-2-git-send-email-u.kleine-koenig@pengutronix.de> Message-ID: <4F856C37.2040304@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Uwe, On 3/31/2012 1:34 AM, Uwe Kleine-K?nig wrote: > As long as there is no other non-const variable marked __initdata in the > same compilation unit it doesn't hurt. If there were one however > compilation would fail with > > error: $variablename causes a section type conflict > > because a section containing const variables is marked read only and so > cannot contain non-const variables. > > Signed-off-by: Uwe Kleine-K?nig For the DaVinci parts, Acked-by: Sekhar Nori Thanks, Sekhar