[PATCH] kernel/cpu_pm: mark 1 function as __init to save some memory

From: Christophe JAILLET
Date: Sun Jun 21 2020 - 04:33:22 EST


'cpu_pm_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@xxxxxxxxxx>
---
kernel/cpu_pm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cpu_pm.c b/kernel/cpu_pm.c
index 44a259338e33..6a4717ae6917 100644
--- a/kernel/cpu_pm.c
+++ b/kernel/cpu_pm.c
@@ -191,7 +191,7 @@ static struct syscore_ops cpu_pm_syscore_ops = {
.resume = cpu_pm_resume,
};

-static int cpu_pm_init(void)
+static int __init cpu_pm_init(void)
{
register_syscore_ops(&cpu_pm_syscore_ops);
return 0;
--
2.25.1