[PATCH 2/3] net/mlx5: fix build with MinGW 13
Dariusz Sosnowski
dsosnowski at nvidia.com
Thu Aug 14 11:50:57 CEST 2025
On Wed, Aug 13, 2025 at 05:25:24PM +0200, Thomas Monjalon wrote:
> After an upgrade to MinGW version 13, compilation breaks:
>
> drivers/net/mlx5/windows/mlx5_ethdev_os.c:285:69: error:
> 'dev_link.<U1000>.<Uaf00>.link_autoneg' may be used uninitialized
>
> This is because link_autoneg is never set in mlx5_link_update().
> It can be set to the previous value (no change).
> Also it does not make sense to check this value to return the update status
> as it does not change.
>
> Fixes: 6fbd73709ee4 ("net/mlx5: support link update on Windows")
> Cc: stable at dpdk.org
>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Best regards,
Dariusz Sosnowski
More information about the dev
mailing list