kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kernel/cpu_pm: mark 1 function as __init to save some memory
@ 2020-06-21  8:33 Christophe JAILLET
  2020-06-25  6:59 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe JAILLET @ 2020-06-21  8:33 UTC (permalink / raw)
  To: swboyd, bjorn.andersson, dianders, gregkh
  Cc: linux-kernel, kernel-janitors, Christophe JAILLET

'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@wanadoo.fr>
---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-25  6:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-21  8:33 [PATCH] kernel/cpu_pm: mark 1 function as __init to save some memory Christophe JAILLET
2020-06-25  6:59 ` Stephen Boyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).