Skip to contentSkip to conversation

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

PATCH Superseded Xiu Jianfeng 2 participants 3 messages Sep 6, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
index b698d05dd069..d65f6c25a87c 100644
@@ -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
#1 lore raw

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:

Fixes 135b881ea885 ("rv/reactor: Add the printk reactor")
Fixes e88043c0ac16 ("rv/reactor: Add the panic reactor")
Quoted 1 line

Thanks
-- Daniel

#2 lore raw

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

Thanks
-- Daniel
.