Re: [PATCH] net/mlx5: fix -Wtype-limits compilation warnings

2019-07-29 Thread Saeed Mahameed
On Mon, 2019-07-22 at 14:34 -0400, Qian Cai wrote: > The commit b9a7ba556207 ("net/mlx5: Use event mask based on device > capabilities") introduced a few compilation warnings due to it bumps > MLX5_EVENT_TYPE_MAX from 0x27 to 0x100 which is always greater than > an "struct {mlx5_eqe|mlx5_nb}.type"

Re: [PATCH] net/mlx5: fix -Wtype-limits compilation warnings

2019-07-22 Thread Saeed Mahameed
On Mon, Jul 22, 2019 at 12:09 PM David Miller wrote: > > From: Qian Cai > Date: Mon, 22 Jul 2019 14:34:42 -0400 > > > The commit b9a7ba556207 ("net/mlx5: Use event mask based on device > > capabilities") introduced a few compilation warnings due to it bumps > > MLX5_EVENT_TYPE_MAX from 0x27 to

Re: [PATCH] net/mlx5: fix -Wtype-limits compilation warnings

2019-07-22 Thread David Miller
From: Qian Cai Date: Mon, 22 Jul 2019 14:34:42 -0400 > The commit b9a7ba556207 ("net/mlx5: Use event mask based on device > capabilities") introduced a few compilation warnings due to it bumps > MLX5_EVENT_TYPE_MAX from 0x27 to 0x100 which is always greater than > an "struct

[PATCH] net/mlx5: fix -Wtype-limits compilation warnings

2019-07-22 Thread Qian Cai
The commit b9a7ba556207 ("net/mlx5: Use event mask based on device capabilities") introduced a few compilation warnings due to it bumps MLX5_EVENT_TYPE_MAX from 0x27 to 0x100 which is always greater than an "struct {mlx5_eqe|mlx5_nb}.type" that is an "u8".