Re: [PATCH v3 net] net/mlx5: Fix return type mismatch in mlx5_esw_vport_vhca_id()
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-01-25 22:50:12
Also in:
linux-rdma, lkml
From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-01-25 22:50:12
Also in:
linux-rdma, lkml
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski [off-list ref]: On Fri, 23 Jan 2026 16:57:49 +0800 you wrote:
From: Zeng Chi <redacted> The function mlx5_esw_vport_vhca_id() is declared to return bool, but returns -EOPNOTSUPP (-45), which is an int error code. This causes a signedness bug as reported by smatch. This patch fixes this smatch report: drivers/net/ethernet/mellanox/mlx5/core/eswitch.h:981 mlx5_esw_vport_vhca_id() warn: signedness bug returning '(-45)' [...]
Here is the summary with links:
- [v3,net] net/mlx5: Fix return type mismatch in mlx5_esw_vport_vhca_id()
https://git.kernel.org/netdev/net/c/ca12c4a155eb
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html