From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id D9AE91B29D for ; Sat, 21 Oct 2017 03:05:13 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Oct 2017 18:05:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,408,1503385200"; d="scan'208";a="1027575313" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.241.224.220]) ([10.241.224.220]) by orsmga003.jf.intel.com with ESMTP; 20 Oct 2017 18:05:12 -0700 To: Xueming Li , Nelio Laranjeiro , FerruhYigitferruh.yigit@intel.com Cc: dev@dpdk.org References: <20171017024643.1011-1-xuemingl@mellanox.com> From: Ferruh Yigit Message-ID: Date: Fri, 20 Oct 2017 18:05:12 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171017024643.1011-1-xuemingl@mellanox.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [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: Sat, 21 Oct 2017 01:05:14 -0000 On 10/16/2017 7:46 PM, Xueming Li wrote: > Initialize variable to avoid ICC compiler warning: > http://www.dpdk.org/ml/archives/dev/2017-October/077971.html Hi Xueming, Nelio, I disabled that warning for ICC in Makefile [1], as mentioned in above mail. If you prefer to fix it instead of disable, can you please update the patch, and remove that workaround in this patch? Thanks, ferruh [1] http://dpdk.org/browse/dpdk/tree/drivers/net/mlx5/Makefile#n93 # Disable false positive warning ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y) CFLAGS_mlx5_txq.o += -wd3656 endif > > 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. >