* [PATCH -next] net: rds: add missing __init/__exit annotations to module init/exit funcs
@ 2022-09-09 9:18 Xiu Jianfeng
2022-09-20 1:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Xiu Jianfeng @ 2022-09-09 9:18 UTC (permalink / raw)
To: santosh.shilimkar, davem, edumazet, kuba, pabeni
Cc: netdev, linux-rdma, rds-devel, linux-kernel
Add missing __init/__exit annotations to module init/exit funcs.
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
---
net/rds/af_rds.c | 2 +-
net/rds/rdma_transport.c | 4 ++--
net/rds/tcp.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/net/rds/af_rds.c b/net/rds/af_rds.c
index b239120dd9ca..3ff6995244e5 100644
--- a/net/rds/af_rds.c
+++ b/net/rds/af_rds.c
@@ -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;
diff --git a/net/rds/rdma_transport.c b/net/rds/rdma_transport.c
index a9e4ff948a7d..d36f3f6b4351 100644
--- a/net/rds/rdma_transport.c
+++ b/net/rds/rdma_transport.c
@@ -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();
diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index 73ee2771093d..d8754366506a 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -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;
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] net: rds: add missing __init/__exit annotations to module init/exit funcs
2022-09-09 9:18 [PATCH -next] net: rds: add missing __init/__exit annotations to module init/exit funcs Xiu Jianfeng
@ 2022-09-20 1:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-09-20 1:10 UTC (permalink / raw)
To: Xiu Jianfeng
Cc: santosh.shilimkar, davem, edumazet, kuba, pabeni, netdev,
linux-rdma, rds-devel, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 9 Sep 2022 17:18:40 +0800 you wrote:
> Add missing __init/__exit annotations to module init/exit funcs.
>
> Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
> ---
> net/rds/af_rds.c | 2 +-
> net/rds/rdma_transport.c | 4 ++--
> net/rds/tcp.c | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
Here is the summary with links:
- [-next] net: rds: add missing __init/__exit annotations to module init/exit funcs
https://git.kernel.org/netdev/net-next/c/f0bd32c83382
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-20 1:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-09 9:18 [PATCH -next] net: rds: add missing __init/__exit annotations to module init/exit funcs Xiu Jianfeng
2022-09-20 1:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox