Message ID | 54C2106602000078000588DF@mail.emea.novell.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Rafael Wysocki |
Headers | show |
On Friday, January 23, 2015 08:12:06 AM Jan Beulich wrote: > 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> Queued up for 3.20, thanks! > --- > drivers/acpi/sleep.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- 3.19-rc5/drivers/acpi/sleep.c > +++ 3.19-rc5-ACPI-sleep-DMI-check-init/drivers/acpi/sleep.c > @@ -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 majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html
--- 3.19-rc5/drivers/acpi/sleep.c +++ 3.19-rc5-ACPI-sleep-DMI-check-init/drivers/acpi/sleep.c @@ -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;
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> --- drivers/acpi/sleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html