]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/x86: mark const init data with __initconst instead of __initdata
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 30 Mar 2012 20:05:04 +0000 (22:05 +0200)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:23:38 +0000 (14:23 -0400)
commit39229d33e47eb235ab1aef92b7c104d353797114
tree57d5236fea69c58e3bccf989b8e82a25bd127b39
parent85d5a8bc3f0c2815602be9446cb1605d0cf6c508
drivers/x86: 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: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>
Cc: platform-driver-x86@vger.kernel.org
Cc: ibm-acpi-devel@lists.sourceforge.net
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/dell-laptop.c