[PATCH] powerpc: pseries: add __init/__exit annotations to module init/exit funcs
From: Xiu Jianfeng
Date: Sun Sep 11 2022 - 04:46:31 EST
Add missing __init/__exit annotations to module init/exit funcs.
Signed-off-by: Xiu Jianfeng <xiujianfeng@xxxxxxxxxx>
---
arch/powerpc/platforms/pseries/cmm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/platforms/pseries/cmm.c b/arch/powerpc/platforms/pseries/cmm.c
index 5f4037c1d7fe..3c56c5cb0fa9 100644
--- a/arch/powerpc/platforms/pseries/cmm.c
+++ b/arch/powerpc/platforms/pseries/cmm.c
@@ -565,7 +565,7 @@ static void cmm_balloon_compaction_init(void)
* Return value:
* 0 on success / other on failure
**/
-static int cmm_init(void)
+static int __init cmm_init(void)
{
int rc;
@@ -615,7 +615,7 @@ static int cmm_init(void)
* Return value:
* nothing
**/
-static void cmm_exit(void)
+static void __exit cmm_exit(void)
{
if (cmm_thread_ptr)
kthread_stop(cmm_thread_ptr);
--
2.17.1