acpi: fix section mismatch warning in pnpacpi

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>
This commit is contained in:
Sam Ravnborg 2008-04-29 22:52:01 +02:00 committed by Len Brown
parent 2c6e33c366
commit 9448b0d43e
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ static struct acpi_device_id excluded_id_list[] __initdata = {
{"", 0}, {"", 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)); return (!acpi_match_device_ids(dev, excluded_id_list));
} }