acpi: fix section mismatch warning in pnpacpi
authorSam Ravnborg <sam@ravnborg.org>
Tue, 29 Apr 2008 20:52:01 +0000 (22:52 +0200)
committerLen Brown <len.brown@intel.com>
Wed, 30 Apr 2008 17:33:26 +0000 (13:33 -0400)
Fix following section mismatch warning:
WARNING: vmlinux.o(.text+0x153d69): Section mismatch in reference from the function is_exclusive_device() to the variable .init.data:excluded_id_list

is_exclusive_device is only used from __init context so document
this with the __init annotation and get rid of the warning.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/pnpacpi/core.c

index c283a9a70d8321063d92bd4a3c40607255f4459d..63e64ef39fb70cc8f6008d76b00f3b437871dcf0 100644 (file)
@@ -44,7 +44,7 @@ static struct acpi_device_id excluded_id_list[] __initdata = {
        {"", 0},
 };
 
-static inline int is_exclusive_device(struct acpi_device *dev)
+static inline int __init is_exclusive_device(struct acpi_device *dev)
 {
        return (!acpi_match_device_ids(dev, excluded_id_list));
 }