Skip to content

Commit e827af7

Browse files
author
Mete Durlu
committed
net/smc: remove unused function smc_lo_supports_v2
JIRA: https://issues.redhat.com/browse/RHEL-99989 commit 091d019 Author: Wang Liang <wangliang74@huawei.com> Date: Thu Jun 19 11:08:54 2025 +0800 net/smc: remove unused function smc_lo_supports_v2 The smcd_ops->supports_v2 is only called in smcd_register_dev(), which calls function smcd_supports_v2 for ism. For loopback-ism, function smc_lo_supports_v2 is unused, remove it. Signed-off-by: Wang Liang <wangliang74@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250619030854.1536676-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 9bfbd54 commit e827af7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

net/smc/smc_loopback.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,6 @@ static int smc_lo_move_data(struct smcd_dev *smcd, u64 dmb_tok,
251251
return 0;
252252
}
253253

254-
static int smc_lo_supports_v2(void)
255-
{
256-
return SMC_LO_V2_CAPABLE;
257-
}
258-
259254
static void smc_lo_get_local_gid(struct smcd_dev *smcd,
260255
struct smcd_gid *smcd_gid)
261256
{
@@ -288,7 +283,6 @@ static const struct smcd_ops lo_ops = {
288283
.reset_vlan_required = NULL,
289284
.signal_event = NULL,
290285
.move_data = smc_lo_move_data,
291-
.supports_v2 = smc_lo_supports_v2,
292286
.get_local_gid = smc_lo_get_local_gid,
293287
.get_chid = smc_lo_get_chid,
294288
.get_dev = smc_lo_get_dev,

0 commit comments

Comments
 (0)