Skip to content

Commit

Permalink
acpi: fix section mismatch warning in pnpacpi
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sam Ravnborg authored and Len Brown committed Apr 30, 2008
1 parent 2c6e33c commit 9448b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pnp/pnpacpi/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 9448b0d

Please sign in to comment.