forked from Minki/linux
net: rds: add missing __init/__exit annotations to module init/exit funcs
Add missing __init/__exit annotations to module init/exit funcs. Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com> Link: https://lore.kernel.org/r/20220909091840.247946-1-xiujianfeng@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
9621e74f39
commit
f0bd32c833
@ -894,7 +894,7 @@ module_exit(rds_exit);
|
||||
|
||||
u32 rds_gen_num;
|
||||
|
||||
static int rds_init(void)
|
||||
static int __init rds_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -291,7 +291,7 @@ static void rds_rdma_listen_stop(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
static int rds_rdma_init(void)
|
||||
static int __init rds_rdma_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@ -307,7 +307,7 @@ out:
|
||||
}
|
||||
module_init(rds_rdma_init);
|
||||
|
||||
static void rds_rdma_exit(void)
|
||||
static void __exit rds_rdma_exit(void)
|
||||
{
|
||||
/* stop listening first to ensure no new connections are attempted */
|
||||
rds_rdma_listen_stop();
|
||||
|
@ -712,7 +712,7 @@ static void rds_tcp_exit(void)
|
||||
}
|
||||
module_exit(rds_tcp_exit);
|
||||
|
||||
static int rds_tcp_init(void)
|
||||
static int __init rds_tcp_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user