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:135b881ea8
("rv/reactor: Add the printk reactor") Fixes:e88043c0ac
("rv/reactor: Add the panic reactor") Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
Родитель
cecf8e128e
Коммит
93d71986a6
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -23,13 +23,13 @@ static struct rv_reactor rv_printk = {
|
|||
.react = rv_printk_reaction
|
||||
};
|
||||
|
||||
static int register_react_printk(void)
|
||||
static int __init register_react_printk(void)
|
||||
{
|
||||
rv_register_reactor(&rv_printk);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void unregister_react_printk(void)
|
||||
static void __exit unregister_react_printk(void)
|
||||
{
|
||||
rv_unregister_reactor(&rv_printk);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче