Skip to contentSkip to conversation

ACPI/sleep: mark acpi_sleep_dmi_check() __init

PATCH Applied Jan Beulich 2 participants 2 messages Jan 23, 2015 – Jan 29, 2015 ACPI

lore
Share & tools
lore
#0 lore raw

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.

---
 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;
 
#1 lore raw
Quoted 7 lines · Jan Beulich

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.

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.