Skip to content

Commit 93d7198

Browse files
Xiu Jianfengrostedt
authored andcommitted
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/[email protected] Fixes: 135b881 ("rv/reactor: Add the printk reactor") Fixes: e88043c ("rv/reactor: Add the panic reactor") Signed-off-by: Xiu Jianfeng <[email protected]> Acked-by: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent cecf8e1 commit 93d7198

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

kernel/trace/rv/reactor_panic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ static struct rv_reactor rv_panic = {
2424
.react = rv_panic_reaction
2525
};
2626

27-
static int register_react_panic(void)
27+
static int __init register_react_panic(void)
2828
{
2929
rv_register_reactor(&rv_panic);
3030
return 0;
3131
}
3232

33-
static void unregister_react_panic(void)
33+
static void __exit unregister_react_panic(void)
3434
{
3535
rv_unregister_reactor(&rv_panic);
3636
}

kernel/trace/rv/reactor_printk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ static struct rv_reactor rv_printk = {
2323
.react = rv_printk_reaction
2424
};
2525

26-
static int register_react_printk(void)
26+
static int __init register_react_printk(void)
2727
{
2828
rv_register_reactor(&rv_printk);
2929
return 0;
3030
}
3131

32-
static void unregister_react_printk(void)
32+
static void __exit unregister_react_printk(void)
3333
{
3434
rv_unregister_reactor(&rv_printk);
3535
}

0 commit comments

Comments
 (0)