Messages in this thread Patch in this message | | | From | Xiu Jianfeng <> | Subject | [PATCH] cpu_pm: Add __init annotation to cpu_pm_init() | Date | Tue, 27 Sep 2022 19:51:34 +0800 |
| |
It's a core_initcall entry, add __init annotation to it.
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.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
| |