Commit 93d71986 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Steven Rostedt (Google)

rv/reactor: add __init/__exit annotations to module init/exit funcs

Add missing __init/__exit annotations to module init/exit funcs.

Link: https://lkml.kernel.org/r/20220906141210.132607-1-xiujianfeng@huawei.com

Fixes: 135b881e ("rv/reactor: Add the printk reactor")
Fixes: e88043c0 ("rv/reactor: Add the panic reactor")
Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Acked-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent cecf8e12
...@@ -24,13 +24,13 @@ static struct rv_reactor rv_panic = { ...@@ -24,13 +24,13 @@ static struct rv_reactor rv_panic = {
.react = rv_panic_reaction .react = rv_panic_reaction
}; };
static int register_react_panic(void) static int __init register_react_panic(void)
{ {
rv_register_reactor(&rv_panic); rv_register_reactor(&rv_panic);
return 0; return 0;
} }
static void unregister_react_panic(void) static void __exit unregister_react_panic(void)
{ {
rv_unregister_reactor(&rv_panic); rv_unregister_reactor(&rv_panic);
} }
......
...@@ -23,13 +23,13 @@ static struct rv_reactor rv_printk = { ...@@ -23,13 +23,13 @@ static struct rv_reactor rv_printk = {
.react = rv_printk_reaction .react = rv_printk_reaction
}; };
static int register_react_printk(void) static int __init register_react_printk(void)
{ {
rv_register_reactor(&rv_printk); rv_register_reactor(&rv_printk);
return 0; return 0;
} }
static void unregister_react_printk(void) static void __exit unregister_react_printk(void)
{ {
rv_unregister_reactor(&rv_printk); rv_unregister_reactor(&rv_printk);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment