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

2021-01-12 Thread Thomas Monjalon
07/01/2021 13:59, Matan Azrad: > 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 'u

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

2021-01-07 Thread Matan Azrad
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

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

2021-01-07 Thread 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