lkml.org 
[lkml]   [2022]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] powerpc: pseries: add __init/__exit annotations to module init/exit funcs
Date
Add missing __init/__exit annotations to module init/exit funcs.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
---
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
\
 
 \ /
  Last update: 2022-09-11 10:46    [W:0.020 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site