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:
Xiu Jianfeng 2022-09-09 17:18:40 +08:00 committed by Jakub Kicinski
parent 9621e74f39
commit f0bd32c833
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

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

View File

@ -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;