Re: [net-next v4 01/15] net/mlx5: Fix compilation warning for 32-bit platform

2020-12-14 Thread Leon Romanovsky
On Mon, Dec 14, 2020 at 02:31:25PM -0800, Alexander Duyck wrote: > On Mon, Dec 14, 2020 at 1:49 PM Saeed Mahameed wrote: > > > > From: Parav Pandit > > > > MLX5_GENERAL_OBJECT_TYPES types bitfield is 64-bit field. > > > > Defining an enum for such bit fields on 32-bit platform results in below >

Re: [net-next v4 01/15] net/mlx5: Fix compilation warning for 32-bit platform

2020-12-14 Thread Saeed Mahameed
On Mon, 2020-12-14 at 14:31 -0800, Alexander Duyck wrote: > On Mon, Dec 14, 2020 at 1:49 PM Saeed Mahameed > wrote: > > From: Parav Pandit > > > > MLX5_GENERAL_OBJECT_TYPES types bitfield is 64-bit field. > > > > Defining an enum for such bit fields on 32-bit platform results in > > below > > w

Re: [net-next v4 01/15] net/mlx5: Fix compilation warning for 32-bit platform

2020-12-14 Thread Alexander Duyck
On Mon, Dec 14, 2020 at 1:49 PM Saeed Mahameed wrote: > > From: Parav Pandit > > MLX5_GENERAL_OBJECT_TYPES types bitfield is 64-bit field. > > Defining an enum for such bit fields on 32-bit platform results in below > warning. > > ./include/vdso/bits.h:7:26: warning: left shift count >= width of

[net-next v4 01/15] net/mlx5: Fix compilation warning for 32-bit platform

2020-12-14 Thread Saeed Mahameed
From: Parav Pandit MLX5_GENERAL_OBJECT_TYPES types bitfield is 64-bit field. Defining an enum for such bit fields on 32-bit platform results in below warning. ./include/vdso/bits.h:7:26: warning: left shift count >= width of type [-Wshift-count-overflow] ^ ./include/li