From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id BF0CA5323 for ; Fri, 25 Mar 2016 14:57:33 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 25 Mar 2016 06:57:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,391,1455004800"; d="scan'208";a="944895290" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.220.58]) by fmsmga002.fm.intel.com with SMTP; 25 Mar 2016 06:57:31 -0700 Received: by (sSMTP sendmail emulation); Fri, 25 Mar 2016 13:57:30 +0025 Date: Fri, 25 Mar 2016 13:57:30 +0000 From: Bruce Richardson To: "Ananyev, Konstantin" Cc: "Yigit, Ferruh" , "dev@dpdk.org" , Stephen Hemminger Message-ID: <20160325135729.GA14060@bricha3-MOBL3> References: <56F30A0C.5010207@intel.com> <1458840891-30237-1-git-send-email-ferruh.yigit@intel.com> <2601191342CEEE43887BDE71AB97725836B20DA4@irsmsx105.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2601191342CEEE43887BDE71AB97725836B20DA4@irsmsx105.ger.corp.intel.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v2] ixgbe: disable icc compile warning X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2016 13:57:34 -0000 On Thu, Mar 24, 2016 at 05:47:21PM +0000, Ananyev, Konstantin wrote: > > -----Original Message----- > > From: Yigit, Ferruh > > Sent: Thursday, March 24, 2016 5:35 PM > > To: dev@dpdk.org > > Cc: Stephen Hemminger; Ananyev, Konstantin; Yigit, Ferruh > > Subject: [PATCH v2] ixgbe: disable icc compile warning > > > > icc (icc (ICC) 16.0.1 20151021) is generating following compile error: > > " > > CC ixgbe_rxtx.o > > .../drivers/net/ixgbe/ixgbe_rxtx.c(153): error #3656: variable > > "free" may be used before its value is set > > (nb_free > 0 && m->pool != free[0]->pool)) { > > ^ > > " > > > > Indeed this is a false positive and code is correct. > > "nb_free" check prevents the free[] access before its value set. > > > > Disabling this icc warning (#3656) for file ixgbe_rxtx.c. > > > > Signed-off-by: Ferruh Yigit > > --- > > drivers/net/ixgbe/Makefile | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/net/ixgbe/Makefile b/drivers/net/ixgbe/Makefile > > index c032775..50bf51c 100644 > > --- a/drivers/net/ixgbe/Makefile > > +++ b/drivers/net/ixgbe/Makefile > > @@ -49,6 +49,8 @@ ifeq ($(CC), icc) > > # > > CFLAGS_BASE_DRIVER = -wd174 -wd593 -wd869 -wd981 -wd2259 > > > > +CFLAGS_ixgbe_rxtx.o += -wd3656 > > + > > else ifeq ($(CC), clang) > > # > > # CFLAGS for clang > > -- > > Acked-by: Konstantin Ananyev > Applied to dpdk-next-net/rel_16_04 /Bruce