__initdata is not an identifier
Subsystems (2)
PATCH 1/1 __initdata is not an identifier
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 <[email protected]>
---
drivers/pnp/pnpacpi/core.c +1 -1
@@ -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 */