[PATCH] common/mlx5: avoid warning about operation mixing different enum types
Dariusz Sosnowski
dsosnowski at nvidia.com
Wed Jun 4 09:42:31 CEST 2025
Hi,
On Tue, Jun 03, 2025 at 06:41:24PM +0200, Dariusz Sosnowski wrote:
> Hi,
>
> On Tue, May 27, 2025 at 04:41:25PM -0700, Andre Muezerie wrote:
> > When compiling with MSVC, warnings like the one below pop up:
> >
> > ../drivers/common/mlx5/mlx5_devx_cmds.c(554): warning C5287: operands
> > are different enum types
> > '<unnamed-enum-MLX5_GET_HCA_CAP_OP_MOD_GENERAL_DEVICE>' and
> > '<unnamed-enum-MLX5_HCA_CAP_OPMOD_GET_MAX>'; use an explicit cast
> > to silence this warning
> >
> > The values in both enums indicate that this sort of mixed bit
> > manipulation is intentional, so this patch just uses an explicit
> > cast to avoid the warning.
> >
> > Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
>
> Best regards,
> Dariusz Sosnowski
@Patrick Could you please take a look at CI failures for this patch?
Here is the test report log: https://mails.dpdk.org/archives/test-report/2025-May/882321.html
There is a Fedora 41 compilation failure in "dpdk_compile_spdk".
It seems on the related to the patch, because it fails in SPDK code.
@Andre Could you please take a look at CI failure on Windows?
There is a unit tests failure on Windows Server 2022.
Best regards,
Dariusz Sosnowski
More information about the dev
mailing list