projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
355ba37
)
PM: hibernate: Add __init annotation to swsusp_header_init()
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sun, 31 May 2020 21:00:59 +0000
(23:00 +0200)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Fri, 5 Jun 2020 11:52:38 +0000
(13:52 +0200)
'swsusp_header_init()' is only called via 'core_initcall'.
It can be marked as __init to save a few bytes of memory.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/swap.c
patch
|
blob
|
history
diff --git
a/kernel/power/swap.c
b/kernel/power/swap.c
index ca0fcb5ced71441bf58bd77e62be33b077886a11..01e2858b5fe36737ef663f6269bcc7fe7e57d26c 100644
(file)
--- a/
kernel/power/swap.c
+++ b/
kernel/power/swap.c
@@
-1590,7
+1590,7
@@
int swsusp_unmark(void)
}
#endif
-static int swsusp_header_init(void)
+static int
__init
swsusp_header_init(void)
{
swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL);
if (!swsusp_header)