Commit 834168fb authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Steven Rostedt (Google)

rv/monitor: 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/20220922103208.162869-1-xiujianfeng@huawei.com

Fixes: 24bce201 ("tools/rv: Add dot2k")
Fixes: 8812d212 ("rv/monitor: Add the wip monitor skeleton created by dot2k")
Fixes: ccc319dc ("rv/monitor: Add the wwnr monitor")
Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Acked-by: default avatarDaniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
parent 99ee9317
...@@ -69,13 +69,13 @@ static struct rv_monitor rv_wip = { ...@@ -69,13 +69,13 @@ static struct rv_monitor rv_wip = {
.enabled = 0, .enabled = 0,
}; };
static int register_wip(void) static int __init register_wip(void)
{ {
rv_register_monitor(&rv_wip); rv_register_monitor(&rv_wip);
return 0; return 0;
} }
static void unregister_wip(void) static void __exit unregister_wip(void)
{ {
rv_unregister_monitor(&rv_wip); rv_unregister_monitor(&rv_wip);
} }
......
...@@ -68,13 +68,13 @@ static struct rv_monitor rv_wwnr = { ...@@ -68,13 +68,13 @@ static struct rv_monitor rv_wwnr = {
.enabled = 0, .enabled = 0,
}; };
static int register_wwnr(void) static int __init register_wwnr(void)
{ {
rv_register_monitor(&rv_wwnr); rv_register_monitor(&rv_wwnr);
return 0; return 0;
} }
static void unregister_wwnr(void) static void __exit unregister_wwnr(void)
{ {
rv_unregister_monitor(&rv_wwnr); rv_unregister_monitor(&rv_wwnr);
} }
......
...@@ -72,13 +72,13 @@ static struct rv_monitor rv_MODEL_NAME = { ...@@ -72,13 +72,13 @@ static struct rv_monitor rv_MODEL_NAME = {
.enabled = 0, .enabled = 0,
}; };
static int register_MODEL_NAME(void) static int __init register_MODEL_NAME(void)
{ {
rv_register_monitor(&rv_MODEL_NAME); rv_register_monitor(&rv_MODEL_NAME);
return 0; return 0;
} }
static void unregister_MODEL_NAME(void) static void __exit unregister_MODEL_NAME(void)
{ {
rv_unregister_monitor(&rv_MODEL_NAME); rv_unregister_monitor(&rv_MODEL_NAME);
} }
......
...@@ -72,13 +72,13 @@ static struct rv_monitor rv_MODEL_NAME = { ...@@ -72,13 +72,13 @@ static struct rv_monitor rv_MODEL_NAME = {
.enabled = 0, .enabled = 0,
}; };
static int register_MODEL_NAME(void) static int __init register_MODEL_NAME(void)
{ {
rv_register_monitor(&rv_MODEL_NAME); rv_register_monitor(&rv_MODEL_NAME);
return 0; return 0;
} }
static void unregister_MODEL_NAME(void) static void __exit unregister_MODEL_NAME(void)
{ {
rv_unregister_monitor(&rv_MODEL_NAME); rv_unregister_monitor(&rv_MODEL_NAME);
} }
......
...@@ -72,13 +72,13 @@ static struct rv_monitor rv_MODEL_NAME = { ...@@ -72,13 +72,13 @@ static struct rv_monitor rv_MODEL_NAME = {
.enabled = 0, .enabled = 0,
}; };
static int register_MODEL_NAME(void) static int __init register_MODEL_NAME(void)
{ {
rv_register_monitor(&rv_MODEL_NAME); rv_register_monitor(&rv_MODEL_NAME);
return 0; return 0;
} }
static void unregister_MODEL_NAME(void) static void __exit unregister_MODEL_NAME(void)
{ {
rv_unregister_monitor(&rv_MODEL_NAME); rv_unregister_monitor(&rv_MODEL_NAME);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment