ACPI/sleep: mark acpi_sleep_dmi_check() __init
PATCH 1/1 ACPI/sleep: mark acpi_sleep_dmi_check() __init
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 <[email protected]>
--- drivers/acpi/sleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/sleep.c +1 -1
@@ -321,7 +321,7 @@ static struct dmi_system_id acpisleep_dm {}, }; -static void acpi_sleep_dmi_check (void ) +static void __init acpi_sleep_dmi_check (void ) {int year;
Rafael J. Wysocki
AppliedQuoted 7 lines · Jan Beulich
ACPI/sleep: mark
acpi_sleep_dmi_check()__initThis 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 <[email protected]>
Queued up for 3.20, thanks!
Quoted 22 lines
--- drivers/acpi/sleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/acpi/sleep.c +1
-2@@ -321,7 +321,7 @@ static struct dmi_system_id acpisleep_dm {}, }; -static void acpi_sleep_dmi_check (void ) +static void __init acpi_sleep_dmi_check (void ) {int year; --To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.