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:
parent
6c5e683925
commit
78657a445c
@ -15,7 +15,7 @@
|
||||
MODULE_LICENSE("Dual BSD/GPL");
|
||||
MODULE_DESCRIPTION("RDMA Verbs Transport Library");
|
||||
|
||||
static int rvt_init(void)
|
||||
static int __init rvt_init(void)
|
||||
{
|
||||
int ret = rvt_driver_cq_init();
|
||||
|
||||
@ -26,7 +26,7 @@ static int rvt_init(void)
|
||||
}
|
||||
module_init(rvt_init);
|
||||
|
||||
static void rvt_cleanup(void)
|
||||
static void __exit rvt_cleanup(void)
|
||||
{
|
||||
rvt_cq_exit();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user