diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-02-17 07:22:48 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-02-21 02:55:26 -0500 |
commit | b95e9e8d94484c2823be67416f25e9756db149dc (patch) | |
tree | cddb24d65e27818652efc851788619138207b03e | |
parent | e80af3a8dbbbf431b2070cc760699f01c5a6ac69 (diff) |
ACPI: fix section mismatch in processor_core.c:acpi_processor_hotplug_notify
Fix following warning:
WARNING: vmlinux.o(.text+0x55586c): Section mismatch in reference from the function acpi_processor_hotplug_notify() to the function .cpuinit.text:acpi_processor_start()
acpi_processor_hotplug_notify() may safely reference __cpuinit
stuff as it ids defined inside an ACPI_HOTPLUG_CPU block.
So annotate it __ref to silence the warning.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | drivers/acpi/processor_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/processor_core.c b/drivers/acpi/processor_core.c index 75ccf5d18bf4..d3cc07fa4480 100644 --- a/drivers/acpi/processor_core.c +++ b/drivers/acpi/processor_core.c | |||
@@ -881,8 +881,8 @@ int acpi_processor_device_add(acpi_handle handle, struct acpi_device **device) | |||
881 | return 0; | 881 | return 0; |
882 | } | 882 | } |
883 | 883 | ||
884 | static void | 884 | static void __ref acpi_processor_hotplug_notify(acpi_handle handle, |
885 | acpi_processor_hotplug_notify(acpi_handle handle, u32 event, void *data) | 885 | u32 event, void *data) |
886 | { | 886 | { |
887 | struct acpi_processor *pr; | 887 | struct acpi_processor *pr; |
888 | struct acpi_device *device = NULL; | 888 | struct acpi_device *device = NULL; |