Skip to content

Commit afd8d7c

Browse files
tititiou36rafaeljw
authored andcommitted
PM: hibernate: Add __init annotation to swsusp_header_init()
'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 <[email protected]> [ rjw: Subject ] Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 355ba37 commit afd8d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/power/swap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ int swsusp_unmark(void)
15901590
}
15911591
#endif
15921592

1593-
static int swsusp_header_init(void)
1593+
static int __init swsusp_header_init(void)
15941594
{
15951595
swsusp_header = (struct swsusp_header*) __get_free_page(GFP_KERNEL);
15961596
if (!swsusp_header)

0 commit comments

Comments
 (0)