Commit f0bd32c8 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Jakub Kicinski

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: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Link: https://lore.kernel.org/r/20220909091840.247946-1-xiujianfeng@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 9621e74f
......@@ -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 @@ static int rds_rdma_init(void)
}
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;
......
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