diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-04-29 22:52:01 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2008-04-30 13:33:26 -0400 |
commit | 9448b0d43e5509c6b7baca02510a92ef2de6e328 (patch) | |
tree | 7a00924e460bc4f343ae6e13e0866ddbd70eedd5 /drivers/pnp | |
parent | 2c6e33c366bff2f839df60d9235ff09143e28dd9 (diff) | |
download | blackbird-op-linux-9448b0d43e5509c6b7baca02510a92ef2de6e328.tar.gz blackbird-op-linux-9448b0d43e5509c6b7baca02510a92ef2de6e328.zip |
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>
Diffstat (limited to 'drivers/pnp')
-rw-r--r-- | drivers/pnp/pnpacpi/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pnp/pnpacpi/core.c b/drivers/pnp/pnpacpi/core.c index c283a9a70d83..63e64ef39fb7 100644 --- a/drivers/pnp/pnpacpi/core.c +++ b/drivers/pnp/pnpacpi/core.c @@ -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)); } |