rv/reactor: add __init/__exit annotations to module init/exit funcs
Subsystems (2)
PATCH 1/1 rv/reactor: add __init/__exit annotations to module init/exit funcs
Add missing __init/__exit annotations to module init/exit funcs.
--- kernel/trace/rv/reactor_panic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/trace/rv/reactor_panic.c +2 -2
@@ -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); }
Signature · 1 line
2.17.1
Hi Xiu
Quoted 1 line · Xiu Jianfeng
Add missing __init/__exit annotations to module init/exit funcs.
Regarding the Subject, this patch is not -next. I would suggest only using -next when you are fixing something in the linux-next (which is not the case here).
You can also fix this for the printk reactor. Do you mind re-sending this patch with including the printk reactor?
If you found it using an automatic tool, please add information to the patch. Also, try to figure out why it pointed to the panic reactor but did not point to printk.
Add to v2:
Quoted 1 line
Signed-off-by Xiu Jianfeng <[email protected]>
Thanks
-- Daniel
Hi,
Quoted 10 lines · Daniel Bristot de Oliveira
Hi Xiu
Quoted 1 line · Xiu Jianfeng
Add missing __init/__exit annotations to module init/exit funcs.
Regarding the Subject, this patch is not -next. I would suggest only using -next when you are fixing something in the linux-next (which is not the case here).
You can also fix this for the printk reactor. Do you mind re-sending this patch with including the printk reactor?
No problem, V2 already sent.
Quoted 4 lines
If you found it using an automatic tool, please add information to the patch. Also, try to figure out why it pointed to the panic reactor but did not point to printk.
Thanks, I found it by review not tools.
Quoted 12 lines
Add to v2:
Fixes 135b881ea885 ("rv/reactor: Add the printk reactor")Fixes e88043c0ac16 ("rv/reactor: Add the panic reactor")Quoted 1 line
Signed-off-by Xiu Jianfeng <[email protected]>Thanks
-- Daniel
.