Commit 78657a44 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Jason Gunthorpe

IB/rdmavt: Add __init/__exit annotations to module init/exit funcs

Add missing __init/__exit annotations to module init/exit funcs.

Fixes: 0194621b ("IB/rdmavt: Create module framework and handle driver registration")
Link: https://lore.kernel.org/r/20220924091457.52446-1-xiujianfeng@huawei.comSigned-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 6c5e6839
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
MODULE_LICENSE("Dual BSD/GPL"); MODULE_LICENSE("Dual BSD/GPL");
MODULE_DESCRIPTION("RDMA Verbs Transport Library"); MODULE_DESCRIPTION("RDMA Verbs Transport Library");
static int rvt_init(void) static int __init rvt_init(void)
{ {
int ret = rvt_driver_cq_init(); int ret = rvt_driver_cq_init();
...@@ -26,7 +26,7 @@ static int rvt_init(void) ...@@ -26,7 +26,7 @@ static int rvt_init(void)
} }
module_init(rvt_init); module_init(rvt_init);
static void rvt_cleanup(void) static void __exit rvt_cleanup(void)
{ {
rvt_cq_exit(); rvt_cq_exit();
} }
......
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