]> 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>
Thu, 3 May 2012 05:44:29 +0000 (15:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 3 May 2012 05:46:49 +0000 (15:46 +1000)
commit50b47c39def5569fc0558ae2f98498b94a84521d
treea7449c7421e077f3cf6ffb4ba7a45b4dffef154e
parentb13b54db1b6b3b8694425a49ae174ee84cb52582
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