Commit bf8b4542f92c4d8222941b1cab055fa350ab2fb4

Authored by Thomas Renninger
Committed by Len Brown
1 parent 918aae42aa

ACPI processor: Fix section mismatch for processor_add()

Due to the merge of processor_start() (declared with __cpuinit) into
processor_add(), a section mismatch warning appears:

WARNING: drivers/built-in.o(.text+0x4d59d): Section mismatch in reference
from the function acpi_processor_add() to the function
.cpuinit.text:acpi_processor_power_init()
...

This patch fixes the warning by declaring processor_add() as __cpuinit
and also declares acpi_processor_add_fs() as __cpuinit as it is only
used in acpi_processor_add().

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/acpi/processor_core.c
... ... @@ -353,7 +353,7 @@
353 353 PDE(inode)->data);
354 354 }
355 355  
356   -static int acpi_processor_add_fs(struct acpi_device *device)
  356 +static int __cpuinit acpi_processor_add_fs(struct acpi_device *device)
357 357 {
358 358 struct proc_dir_entry *entry = NULL;
359 359