]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lib/test-kstrtox.c: mark const init data with __initconst instead of __initdata
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 25 Apr 2012 01:04:33 +0000 (11:04 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 30 Apr 2012 05:17:34 +0000 (15:17 +1000)
commit899ea36a1473dabe8246fb098877b45c5a9f30a3
tree6ce5b204d62f5f402b5070669978d63edda935d8
parent097f4717ef2928049063603d2ed79296eb89b7f9
lib/test-kstrtox.c: mark const init data with __initconst instead of __initdata

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 <u.kleine-koenig@pengutronix.de>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test-kstrtox.c