* [PATCH net-next] net/smc: remove unused input parameters in smc_buf_get_slot
@ 2025-06-18 10:33 Wang Liang
2025-06-18 16:51 ` Simon Horman
2025-06-19 23:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Wang Liang @ 2025-06-18 10:33 UTC (permalink / raw)
To: wenjia, jaka, alibuda, tonylu, guwen, davem, edumazet, kuba,
pabeni, horms
Cc: yuehaibing, zhangchangzhong, linux-rdma, linux-s390, netdev,
linux-kernel
The input parameter "compressed_bufsize" of smc_buf_get_slot is unused,
remove it.
Signed-off-by: Wang Liang <wangliang74@huawei.com>
---
net/smc/smc_core.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c
index ac07b963aede..262746e304dd 100644
--- a/net/smc/smc_core.c
+++ b/net/smc/smc_core.c
@@ -2100,8 +2100,7 @@ int smc_uncompress_bufsize(u8 compressed)
/* try to reuse a sndbuf or rmb description slot for a certain
* buffer size; if not available, return NULL
*/
-static struct smc_buf_desc *smc_buf_get_slot(int compressed_bufsize,
- struct rw_semaphore *lock,
+static struct smc_buf_desc *smc_buf_get_slot(struct rw_semaphore *lock,
struct list_head *buf_list)
{
struct smc_buf_desc *buf_slot;
@@ -2442,7 +2441,7 @@ static int __smc_buf_create(struct smc_sock *smc, bool is_smcd, bool is_rmb)
bufsize = smc_uncompress_bufsize(bufsize_comp);
/* check for reusable slot in the link group */
- buf_desc = smc_buf_get_slot(bufsize_comp, lock, buf_list);
+ buf_desc = smc_buf_get_slot(lock, buf_list);
if (buf_desc) {
buf_desc->is_dma_need_sync = 0;
SMC_STAT_RMB_SIZE(smc, is_smcd, is_rmb, true, bufsize);
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net/smc: remove unused input parameters in smc_buf_get_slot
2025-06-18 10:33 [PATCH net-next] net/smc: remove unused input parameters in smc_buf_get_slot Wang Liang
@ 2025-06-18 16:51 ` Simon Horman
2025-06-19 23:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2025-06-18 16:51 UTC (permalink / raw)
To: Wang Liang
Cc: wenjia, jaka, alibuda, tonylu, guwen, davem, edumazet, kuba,
pabeni, yuehaibing, zhangchangzhong, linux-rdma, linux-s390,
netdev, linux-kernel
On Wed, Jun 18, 2025 at 06:33:42PM +0800, Wang Liang wrote:
> The input parameter "compressed_bufsize" of smc_buf_get_slot is unused,
> remove it.
>
> Signed-off-by: Wang Liang <wangliang74@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net/smc: remove unused input parameters in smc_buf_get_slot
2025-06-18 10:33 [PATCH net-next] net/smc: remove unused input parameters in smc_buf_get_slot Wang Liang
2025-06-18 16:51 ` Simon Horman
@ 2025-06-19 23:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-19 23:20 UTC (permalink / raw)
To: Wang Liang
Cc: wenjia, jaka, alibuda, tonylu, guwen, davem, edumazet, kuba,
pabeni, horms, yuehaibing, zhangchangzhong, linux-rdma,
linux-s390, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 18 Jun 2025 18:33:42 +0800 you wrote:
> The input parameter "compressed_bufsize" of smc_buf_get_slot is unused,
> remove it.
>
> Signed-off-by: Wang Liang <wangliang74@huawei.com>
> ---
> net/smc/smc_core.c | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
Here is the summary with links:
- [net-next] net/smc: remove unused input parameters in smc_buf_get_slot
https://git.kernel.org/netdev/net-next/c/c3ee72ded0d2
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] 3+ messages in thread
end of thread, other threads:[~2025-06-19 23:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-18 10:33 [PATCH net-next] net/smc: remove unused input parameters in smc_buf_get_slot Wang Liang
2025-06-18 16:51 ` Simon Horman
2025-06-19 23:20 ` 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;
as well as URLs for NNTP newsgroup(s).