]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPI: fix section mismatch in processor_core.c:acpi_processor_hotplug_notify
authorSam Ravnborg <sam@ravnborg.org>
Sun, 17 Feb 2008 12:22:48 +0000 (13:22 +0100)
committerLen Brown <len.brown@intel.com>
Thu, 21 Feb 2008 07:55:26 +0000 (02:55 -0500)
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>
drivers/acpi/processor_core.c

index 75ccf5d18bf4e3630e892dd0021a8c890a0fc0c2..d3cc07fa4480fc7e09fda5099af8270cf82c2b49 100644 (file)
@@ -881,8 +881,8 @@ int acpi_processor_device_add(acpi_handle handle, struct acpi_device **device)
        return 0;
 }
 
-static void
-acpi_processor_hotplug_notify(acpi_handle handle, u32 event, void *data)
+static void __ref acpi_processor_hotplug_notify(acpi_handle handle,
+                                               u32 event, void *data)
 {
        struct acpi_processor *pr;
        struct acpi_device *device = NULL;