[PATCH 03/17] ARM: mark const init data with __initconst instead of __initdata

Tony Lindgren tony at atomide.com
Fri Mar 30 12:11:31 EDT 2012


* Uwe Kleine-König <u.kleine-koenig at pengutronix.de> [120329 14:16]:
> 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.

Acked-by: Tony Lindgren <tony at atomide.com>



More information about the linux-arm-kernel mailing list