From: Christophe JAILLET Date: Sun, 31 May 2020 21:00:59 +0000 (+0200) Subject: PM: hibernate: Add __init annotation to swsusp_header_init() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=afd8d7c7f93681370f6fc2ec62f2705710eee62d;p=linux.git 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 [ rjw: Subject ] Signed-off-by: Rafael J. Wysocki --- diff --git a/kernel/power/swap.c b/kernel/power/swap.c index ca0fcb5ced714..01e2858b5fe36 100644 --- 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)