summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2020-05-31 23:00:59 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-06-05 13:52:38 +0200
commitafd8d7c7f93681370f6fc2ec62f2705710eee62d (patch)
treeb5bafe2f5685d8fd3f1a125c396ad2b647bbbd8e
parent355ba37d756c38962fe9bb616f5f48eb12a7e11e (diff)
downloadlinux-afd8d7c7f93681370f6fc2ec62f2705710eee62d.tar.gz
linux-afd8d7c7f93681370f6fc2ec62f2705710eee62d.tar.bz2
linux-afd8d7c7f93681370f6fc2ec62f2705710eee62d.zip
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 <christophe.jaillet@wanadoo.fr> [ rjw: Subject ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--kernel/power/swap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index ca0fcb5ced71..01e2858b5fe3 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)