[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220927115134.209490-1-xiujianfeng@huawei.com>
Date: Tue, 27 Sep 2022 19:51:34 +0800
From: Xiu Jianfeng <xiujianfeng@...wei.com>
To: <paulmck@...nel.org>, <frederic@...nel.org>, <nsaenzju@...hat.com>
CC: <linux-kernel@...r.kernel.org>
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 <xiujianfeng@...wei.com>
---
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
Powered by blists - more mailing lists