Re: [PATCH v3 net] net/mlx5: Fix return type mismatch in mlx5_esw_vport_vhca_id()
From: patchwork-bot+netdevbpf
Date: Sun Jan 25 2026 - 18:02:25 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 23 Jan 2026 16:57:49 +0800 you wrote:
> From: Zeng Chi <zengchi@xxxxxxxxxx>
>
> 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