Skip to content

Commit

Permalink
ACPI / sleep: mark acpi_sleep_dmi_check() __init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jan Beulich authored and Rafael J. Wysocki committed Jan 23, 2015
1 parent ec6f34e commit 8b691c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/sleep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8b691c9

Please sign in to comment.