* [PATCH][drivers/pnp/pnpacpi/core.c] __initdata is not an identifier
@ 2008-02-11 15:05 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2008-02-11 15:05 UTC (permalink / raw)
To: ambx1, len.brown; +Cc: linux-acpi, lkml
sparse complains at drivers/pnp/pnpacpi/core.c:39 with the error:
Trying to use reserved word '__attribute__' as identifier
Expected ) in function declarator, got ".init.data"
and at drivers/pnp/pnpacpi/core.c:49:38 with the error:
undefined identifier 'excluded_id_list'
With the patch below these sparse complaints do not occur
---
__initdata is not an identifier
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c
index 662b4c2..c283a9a 100644
--- a/drivers/pnp/pnpacpi/core.c
+++ b/drivers/pnp/pnpacpi/core.c
@@ -36,7 +36,7 @@ static int num = 0;
* have irqs (PIC, Timer) because we call acpi_register_gsi.
* Finally, only devices that have a CRS method need to be in this list.
*/
-static struct __initdata acpi_device_id excluded_id_list[] = {
+static struct acpi_device_id excluded_id_list[] __initdata = {
{"PNP0C09", 0}, /* EC */
{"PNP0C0F", 0}, /* Link device */
{"PNP0000", 0}, /* PIC */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-11 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-11 15:05 [PATCH][drivers/pnp/pnpacpi/core.c] __initdata is not an identifier Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox