From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro Subject: Re: [PATCH] net/mlx5: fix ICC compiler warning Date: Tue, 17 Oct 2017 09:56:57 +0200 Message-ID: <20171017075657.ecqlggod2htw4kwy@laranjeiro-vm> References: <20171017024643.1011-1-xuemingl@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: FerruhYigitferruh.yigit@intel.com, dev@dpdk.org To: Xueming Li Return-path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 676411B7B3 for ; Tue, 17 Oct 2017 09:57:02 +0200 (CEST) Received: by mail-wm0-f51.google.com with SMTP id m72so1985124wmc.1 for ; Tue, 17 Oct 2017 00:57:02 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20171017024643.1011-1-xuemingl@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Oct 17, 2017 at 10:46:43AM +0800, Xueming Li wrote: > 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 Acked-by: Nelio Laranjeiro -- Nélio Laranjeiro 6WIND