[dpdk-dev] [PATCH v2] mlx5: fix __mlx5_bit_off macro warning for Windows

Matan Azrad matan at nvidia.com
Thu Jan 7 13:59:32 CET 2021



From: Tal Shnaiderman
> While compiling with clang 11 the callers of the __mlx5_bit_off macro warns
> on the cast of pointers to unsigned long which is a smaller int type in Windows.
> 
> warning: cast to smaller integer type 'unsigned long'
> from 'u8 (*)[16]' [-Wpointer-to-int-cast]
> 
> To resolve it the type is changed to uintptr_t to be compatible for both Linux
> and Windows.
> 
> Fixes: 865a0c15672c ("net/mlx5: add Direct Verbs prepare function")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Tal Shnaiderman <talshn at nvidia.com>
Acked-by: Matan Azrad <matan at nvidia.com>


More information about the dev mailing list