[PATCH 1/2] common/mlx5: fix variable shadowing

David Marchand david.marchand at redhat.com
Wed Jan 21 12:11:28 CET 2026


On Wed, 21 Jan 2026 at 12:08, Thomas Monjalon <thomas at monjalon.net> wrote:
>
> The word "unused" is too common for being used in a header.
> There is a warning because a parameter is named "unused" in mbuf:
>
> lib/mbuf/rte_mbuf.h: In function 'rte_mbuf_tx_offload':
> error: declaration of 'unused' shadows a previous local [-Werror=shadow]
>  1910 |         uint64_t ol3, uint64_t ol2, uint64_t unused)
>       |                                     ~~~~~~~~~^~~~~~
>
> Such value should be prefixed with "MLX5".
>
> Fixes: bd935fe3e624 ("net/mlx5: wrap sampling actions per OS")
> Cc: stable at dpdk.org
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
Acked-by: David Marchand <david.marchand at redhat.com>


-- 
David Marchand



More information about the stable mailing list