projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec6f34e
)
ACPI / sleep: mark acpi_sleep_dmi_check() __init
author
Jan Beulich
<
[email protected]
>
Fri, 23 Jan 2015 08:12:06 +0000
(08:12 +0000)
committer
Rafael J. Wysocki
<
[email protected]
>
Fri, 23 Jan 2015 21:10:16 +0000
(22:10 +0100)
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]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/acpi/sleep.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/sleep.c
b/drivers/acpi/sleep.c
index 8aa9254a387fb1c70e90857f70412aa44bceaa6b..7f251dd1a6870df8e21c4b3e87d8ec6b193c5663 100644
(file)
--- 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;