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