]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
rv/reactor: add __init/__exit annotations to module init/exit funcs
authorXiu Jianfeng <xiujianfeng@huawei.com>
Tue, 6 Sep 2022 14:12:10 +0000 (22:12 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 7 Sep 2022 02:26:00 +0000 (22:26 -0400)
Add missing __init/__exit annotations to module init/exit funcs.

Link: https://lkml.kernel.org/r/20220906141210.132607-1-xiujianfeng@huawei.com
Fixes: 135b881ea885 ("rv/reactor: Add the printk reactor")
Fixes: e88043c0ac16 ("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>
kernel/trace/rv/reactor_panic.c
kernel/trace/rv/reactor_printk.c

index b698d05dd06955e883aee394837dd54d2781c5e9..d65f6c25a87cdd31a9079e3217103c72207f1fe7 100644 (file)
@@ -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);
 }
index 31899f953af4e0f9b7baec97ababa8dbd995e36b..4b6b7106a477c2c105823ed798a05a006513e1ae 100644 (file)
@@ -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);
 }