2022-09-27 12:49:10

by Xiu Jianfeng

[permalink] [raw]
Subject: [PATCH] cpu_pm: Add __init annotation to cpu_pm_init()

It's a core_initcall entry, add __init annotation to it.

Signed-off-by: Xiu Jianfeng <[email protected]>
---
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 ba4ba71facf9..57d32d73b429 100644
--- a/kernel/cpu_pm.c
+++ b/kernel/cpu_pm.c
@@ -205,7 +205,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.17.1