From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 8A2F41B751 for ; Tue, 17 Oct 2017 04:47:48 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE1 (envelope-from xuemingl@mellanox.com) with ESMTPS (AES256-SHA encrypted); 17 Oct 2017 04:47:43 +0200 Received: from dev-r630-06.mtbc.labs.mlnx (dev-r630-06.mtbc.labs.mlnx [10.12.205.180]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id v9H2lge1025060; Tue, 17 Oct 2017 05:47:43 +0300 Received: from dev-r630-06.mtbc.labs.mlnx (localhost [127.0.0.1]) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7) with ESMTP id v9H2lfwD001074; Tue, 17 Oct 2017 10:47:41 +0800 Received: (from xuemingl@localhost) by dev-r630-06.mtbc.labs.mlnx (8.14.7/8.14.7/Submit) id v9H2lZhJ001073; Tue, 17 Oct 2017 10:47:35 +0800 From: Xueming Li To: Nelio Laranjeiro , FerruhYigitferruh.yigit@intel.com Cc: Xueming Li , dev@dpdk.org Date: Tue, 17 Oct 2017 10:46:43 +0800 Message-Id: <20171017024643.1011-1-xuemingl@mellanox.com> X-Mailer: git-send-email 2.13.3 Subject: [dpdk-dev] [PATCH] net/mlx5: fix ICC compiler warning X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2017 02:47:48 -0000 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...") Signed-off-by: Xueming Li --- drivers/net/mlx5/mlx5_txq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c index 9deaa7e..93f1388 100644 --- a/drivers/net/mlx5/mlx5_txq.c +++ b/drivers/net/mlx5/mlx5_txq.c @@ -246,6 +246,7 @@ 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. -- 1.8.3.1