diff options
author | Jan Beulich <JBeulich@suse.com> | 2015-01-23 09:12:06 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-01-23 22:10:16 +0100 |
commit | 8b691c9cf297bc32a021b7fef0dd0e32f130e542 (patch) | |
tree | 1ad7ba645c3d4b0183163fb4f3c4c6f7ab96c1f9 /drivers/acpi/sleep.c | |
parent | Linux 3.19-rc5 (diff) | |
download | linux-8b691c9cf297bc32a021b7fef0dd0e32f130e542.tar.xz linux-8b691c9cf297bc32a021b7fef0dd0e32f130e542.zip |
ACPI / sleep: mark acpi_sleep_dmi_check() __init
This makes a difference if the compiler decides not to inline the
function, as then the function's reference to acpisleep_dmi_table[]
yields a section mismatch warning.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/sleep.c')
-rw-r--r-- | drivers/acpi/sleep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c index 8aa9254a387f..7f251dd1a687 100644 --- a/drivers/acpi/sleep.c +++ b/drivers/acpi/sleep.c @@ -321,7 +321,7 @@ static struct dmi_system_id acpisleep_dmi_table[] __initdata = { {}, }; -static void acpi_sleep_dmi_check(void) +static void __init acpi_sleep_dmi_check(void) { int year; |