Skip to content

Commit

Permalink
net: rds: add missing __init/__exit annotations to module init/exit f…
Browse files Browse the repository at this point in the history
…uncs

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>
  • Loading branch information
Xiu Jianfeng authored and Jakub Kicinski committed Sep 20, 2022
1 parent 9621e74 commit f0bd32c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion net/rds/af_rds.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions net/rds/rdma_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion net/rds/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f0bd32c

Please sign in to comment.