On Thu, Oct 05, 2017 at 02:49:48PM +0200, Nelio Laranjeiro wrote: > drivers/net/mlx5/mlx5_rxq.c:606:6: error: comparison of constant 4 > with expression of type 'enum hash_rxq_flow_type' is always true > [-Werror,-Wtautological-constant-out-of-range-compare] > i != (int)RTE_DIM((*priv->hash_rxqs)[0].special_flow); > ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Clang expects to have an index going upto special_flow size which is > defined by MLX5_MAX_SPECIAL_FLOWS and value is 4. Comparing to an > unrelated enum where index my be lower cause this compilation issue. > > Fixes: 36351ea34b92 ("net/mlx: fix build with icc") > Cc: ferruh.yi...@intel.com > Cc: sta...@dpdk.org > > Signed-off-by: Nelio Laranjeiro <nelio.laranje...@6wind.com> > --- Acked-by: Yongseok Koh <ys...@mellanox.com> Thanks
- [dpdk-dev] [PATCH v2 13/30] net/mlx5: add reference count... Nelio Laranjeiro
- [dpdk-dev] [PATCH v2 14/30] net/mlx5: make indirection ta... Nelio Laranjeiro
- [dpdk-dev] [PATCH v2 12/30] net/mlx5: add reference count... Nelio Laranjeiro
- [dpdk-dev] [PATCH v2 15/30] net/mlx5: add Hash Rx queue o... Nelio Laranjeiro
- [dpdk-dev] [PATCH v2 16/30] net/mlx5: fix clang compilati... Nelio Laranjeiro
- Re: [dpdk-dev] [PATCH v2 16/30] net/mlx5: fix clang ... Yongseok Koh
- [dpdk-dev] [PATCH v2 17/30] net/mlx5: use flow to enable ... Nelio Laranjeiro
- [dpdk-dev] [PATCH v2 18/30] net/mlx5: use flow to enable ... Nelio Laranjeiro
- [dpdk-dev] [PATCH v2 20/30] net/mlx5: handle a single RSS... Nelio Laranjeiro
- [dpdk-dev] [PATCH v2 19/30] net/mlx5: use flow to enable ... Nelio Laranjeiro
- [dpdk-dev] [PATCH v2 21/30] net/mlx5: remove hash Rx queu... Nelio Laranjeiro