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

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

Fixes: 0194621b22 ("IB/rdmavt: Create module framework and handle driver registration")
Link: https://lore.kernel.org/r/20220924091457.52446-1-xiujianfeng@huawei.com
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
Xiu Jianfeng 2022-09-24 17:14:57 +08:00 committed by Jason Gunthorpe
parent 6c5e683925
commit 78657a445c
1 changed files with 2 additions and 2 deletions

View File

@ -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)
} }
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();
} }