Skip to content

Commit 9bfbd54

Browse files
author
Mete Durlu
committed
net/smc: remove unused input parameters in smc_buf_get_slot
JIRA: https://issues.redhat.com/browse/RHEL-99989 Conflicts: Conflicts due to change in line numbers between 5.14 & 6.17 kernel, no functional changes commit c3ee72d Author: Wang Liang <wangliang74@huawei.com> Date: Wed Jun 18 18:33:42 2025 +0800 net/smc: remove unused input parameters in smc_buf_get_slot 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> Link: https://patch.msgid.link/20250618103342.1423913-1-wangliang74@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Mahanta Jambigi <mjambigi@linux.ibm.com> Signed-off-by: Mete Durlu <mdurlu@redhat.com>
1 parent e428271 commit 9bfbd54

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

net/smc/smc_core.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,8 +2100,7 @@ int smc_uncompress_bufsize(u8 compressed)
21002100
/* try to reuse a sndbuf or rmb description slot for a certain
21012101
* buffer size; if not available, return NULL
21022102
*/
2103-
static struct smc_buf_desc *smc_buf_get_slot(int compressed_bufsize,
2104-
struct rw_semaphore *lock,
2103+
static struct smc_buf_desc *smc_buf_get_slot(struct rw_semaphore *lock,
21052104
struct list_head *buf_list)
21062105
{
21072106
struct smc_buf_desc *buf_slot;
@@ -2443,7 +2442,7 @@ static int __smc_buf_create(struct smc_sock *smc, bool is_smcd, bool is_rmb)
24432442
bufsize = smc_uncompress_bufsize(bufsize_short);
24442443

24452444
/* check for reusable slot in the link group */
2446-
buf_desc = smc_buf_get_slot(bufsize_short, lock, buf_list);
2445+
buf_desc = smc_buf_get_slot(lock, buf_list);
24472446
if (buf_desc) {
24482447
buf_desc->is_dma_need_sync = 0;
24492448
SMC_STAT_RMB_SIZE(smc, is_smcd, is_rmb, true, bufsize);

0 commit comments

Comments
 (0)