From: Xueming Li Date: Tue, 17 Oct 2017 02:46:43 +0000 (+0800) Subject: net/mlx5: fix icc compiler warning X-Git-Tag: spdx-start~1135 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=50dcb0c521ca996f14e9121c176006cb669b6686;p=dpdk.git net/mlx5: fix icc compiler warning Initialize variable to avoid ICC compiler warning: http://www.dpdk.org/ml/archives/dev/2017-October/077971.html Fixes: f8b9a3bad467 ("net/mlx5: install a socket to exchange a file descriptor") Signed-off-by: Xueming Li Acked-by: Nelio Laranjeiro --- diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index e78840f667..24c07890bc 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -91,11 +91,6 @@ ifdef CONFIG_RTE_LIBRTE_MLX5_TX_MP_CACHE CFLAGS += -DMLX5_PMD_TX_MP_CACHE=$(CONFIG_RTE_LIBRTE_MLX5_TX_MP_CACHE) endif -# Disable false positive warning -ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) -CFLAGS_mlx5_txq.o += -wd3656 -endif - include $(RTE_SDK)/mk/rte.lib.mk # Generate and clean-up mlx5_autoconf.h. diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index 3d5f033702..fbb263023e 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -246,6 +246,7 @@ priv_tx_uar_remap(struct priv *priv, int fd) int already_mapped; size_t page_size = sysconf(_SC_PAGESIZE); + memset(pages, 0, priv->txqs_n * sizeof(uintptr_t)); /* * As rdma-core, UARs are mapped in size of OS page size. * Use aligned address to avoid duplicate mmap.