Skip to contentSkip to conversation

Section mismatch: acpi_early_processor_set_pdc()

PATCH In review Marin Mitov 2 participants 2 messages Jan 13, 2010 – Jan 16, 2010 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Section mismatch: acpi_early_processor_set_pdc()

Hi all,

kernel-2.6.33-rc4, compiler output:

WARNING: Section mismatch in reference from the function acpi_early_processor_set_pdc() to the variable .cpuinit.data:processor_idle_dmi_table The function acpi_early_processor_set_pdc() references
the variable __cpuinitdata processor_idle_dmi_table.
This is often because acpi_early_processor_set_pdc lacks a __cpuinitdata annotation or the annotation of processor_idle_dmi_table is wrong.

acpi_early_processor_set_pdc() is invoked only from __init acpi_bus_init() Mark it __cpuinit.

The patch is against 2.6.33-rc4

===========================================================================

drivers/acpi/processor_pdc.c +1 -1
@@ -151,7 +151,7 @@
 	return AE_OK;
 }
 
-void acpi_early_processor_set_pdc(void)
+void __cpuinit acpi_early_processor_set_pdc(void)
 {
 	/*
 	 * Check whether the system is DMI table. If yes, OSPM
reviewer
#1 lore raw

I think tony's patch (in my tree) to change this to __init is correct.

thanks,
Len Brown, Intel Open Source Technology Center

Quoted 36 lines · Marin Mitov

Hi all,

kernel-2.6.33-rc4, compiler output:

WARNING: Section mismatch in reference from the function acpi_early_processor_set_pdc() to the variable .cpuinit.data:processor_idle_dmi_table The function acpi_early_processor_set_pdc() references
the variable __cpuinitdata processor_idle_dmi_table.
This is often because acpi_early_processor_set_pdc lacks a __cpuinitdata annotation or the annotation of processor_idle_dmi_table is wrong.

acpi_early_processor_set_pdc() is invoked only from __init acpi_bus_init() Mark it __cpuinit.

The patch is against 2.6.33-rc4

===========================================================================

drivers/acpi/processor_pdc.c +1 -2
@@ -151,7 +151,7 @@
 	return AE_OK;
 }
 
-void acpi_early_processor_set_pdc(void)
+void __cpuinit acpi_early_processor_set_pdc(void)
 {
 	/*
 	 * Check whether the system is DMI table. If yes, OSPM
--

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/