From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Subject: Re: [PATCH 00/17] mark const init data with __initconst instead of __initdata Date: Fri, 30 Mar 2012 11:59:00 +0200 Message-ID: <20120330095859.GT15647@pengutronix.de> References: <20120329211131.GA31250@pengutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alexey Dobriyan , Anatolij Gustschin , Andreas Koensgen , Andrew Lunn , Andrew Victor , Arnd Bergmann , Barry Song , Benjamin Herrenschmidt , Bryan Huntsman , cbe-oss-dev@lists.ozlabs.org, Christoph Lameter , Daniel Walker , David Brown , David Howells , "David S. Miller" , David Woodhouse , davinci-linux-open-source@linux.davincidsp.com, Eric Miao , Fenghua Yu , Grant Likely Return-path: Content-Disposition: inline In-Reply-To: <20120329211131.GA31250@pengutronix.de> Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-Id: netdev.vger.kernel.org On Thu, Mar 29, 2012 at 11:11:31PM +0200, Uwe Kleine-K=F6nig wrote: > Hello, >=20 > this series fixes a common error to use __initdata to mark const > variables. Most of the time this works well enough to go unnoticed > (though I wonder why the linker doesn't warn about that). > Just try adding something like >=20 > int something __initdata; >=20 > to one of the patched files and compile to see the error. >=20 > While touching these annotations I also corrected the position where = it > was wrong to go between the variable name and the =3D. >=20 > Note this series is not compile tested. After a question by Shawn Guo I noticed that my command to do the chang= es was to lax and changed things that must not be changed (at least not with further care). Affected are lines like: static const char *at91_dt_board_compat[] __initconst =3D { While at91_dt_board_compat[0] is const, at91_dt_board_compat is not. I will send a fixed series later today. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig = | Industrial Linux Solutions | http://www.pengutronix.de/= |