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 2A3C7106B for ; Mon, 6 Jul 2015 17:33:40 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 06 Jul 2015 08:33:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,415,1432623600"; d="scan'208";a="741518285" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.208.62]) by fmsmga001.fm.intel.com with SMTP; 06 Jul 2015 08:33:37 -0700 Received: by (sSMTP sendmail emulation); Mon, 06 Jul 2015 16:33:36 +0025 Date: Mon, 6 Jul 2015 16:33:36 +0100 From: Bruce Richardson To: Zhigang Lu Message-ID: <20150706153336.GB3680@bricha3-MOBL3> References: <1436172698-21749-1-git-send-email-zlu@ezchip.com> <1436172698-21749-5-git-send-email-zlu@ezchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436172698-21749-5-git-send-email-zlu@ezchip.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 04/12] eal: allow empty compile time flags 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: Mon, 06 Jul 2015 15:33:40 -0000 On Mon, Jul 06, 2015 at 04:51:29PM +0800, Zhigang Lu wrote: > The rte_cpu_check_supported() code breaks with a "comparison is always > false due to limited range of data type" when the compile_time_flags[] > array is empty. Assigning the array dimension to a local variable > apparently solves this. > > Change-Id: I0ae21f529cf7b6dd9cf0f4532dce9198f4bf4230 > Signed-off-by: Zhigang Lu Acked-by: Bruce Richardson