[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220906111846.58738-1-xiujianfeng@huawei.com>
Date: Tue, 6 Sep 2022 19:18:46 +0800
From: Xiu Jianfeng <xiujianfeng@...wei.com>
To: <rostedt@...dmis.org>, <mingo@...hat.com>, <bristot@...nel.org>
CC: <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] rv/reactor: add __init/__exit annotations to module init/exit funcs
Add missing __init/__exit annotations to module init/exit funcs.
Signed-off-by: Xiu Jianfeng <xiujianfeng@...wei.com>
---
kernel/trace/rv/reactor_panic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/trace/rv/reactor_panic.c b/kernel/trace/rv/reactor_panic.c
index b698d05dd069..d65f6c25a87c 100644
--- a/kernel/trace/rv/reactor_panic.c
+++ b/kernel/trace/rv/reactor_panic.c
@@ -24,13 +24,13 @@ static struct rv_reactor rv_panic = {
.react = rv_panic_reaction
};
-static int register_react_panic(void)
+static int __init register_react_panic(void)
{
rv_register_reactor(&rv_panic);
return 0;
}
-static void unregister_react_panic(void)
+static void __exit unregister_react_panic(void)
{
rv_unregister_reactor(&rv_panic);
}
--
2.17.1
Powered by blists - more mailing lists