From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 77154137D for ; Fri, 28 Nov 2014 17:06:38 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 28 Nov 2014 08:06:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,477,1413270000"; d="scan'208";a="639617539" Received: from bricha3-mobl3.ger.corp.intel.com ([10.243.20.19]) by fmsmga002.fm.intel.com with SMTP; 28 Nov 2014 08:06:34 -0800 Received: by (sSMTP sendmail emulation); Fri, 28 Nov 2014 16:06:33 +0025 Date: Fri, 28 Nov 2014 16:06:33 +0000 From: Bruce Richardson To: "Sujith Sankar (ssujith)" Message-ID: <20141128160633.GC4556@bricha3-MOBL3> References: <1417167499-4847-1-git-send-email-ssujith@cisco.com> <20141128155229.GB4556@bricha3-MOBL3> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v2] enicpmd: replace the type u_int* with uint* to remove compilation errors on a few platforms 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, 28 Nov 2014 16:06:40 -0000 On Fri, Nov 28, 2014 at 04:01:00PM +0000, Sujith Sankar (ssujith) wrote: > > > On 28/11/14 9:22 pm, "Bruce Richardson" wrote: > > >On Fri, Nov 28, 2014 at 03:08:19PM +0530, Sujith Sankar wrote: > >> ENIC PMD was giving compilation errors on ppc_64-power8-linuxapp-gcc > >>because > >> of types such as u_int32_t. This patch replaces all those with > >>uint32_t and > >> similar ones. > >> > >> Reported-by: David Marchand > >> Signed-off-by: Sujith Sankar > > > >Acked-by: Bruce Richardson > > > >This patch helps out with getting a clang compile on BSD. However, one > >error > >and a number of warnings remain that should be looked at in another patch. > >The error is: > > > >dpdk.org/lib/librte_pmd_enic/enic_main.c:435:3: fatal error: non-void > >function 'enic_rq_indicate_buf' should return a value [-Wreturn-type] > > return; > > Bruce, thanks for the comment. Išve not built enicpmd using clang > compiler. > I shall setup a BSD build with clang compiler and send a patch with > necessary fixes. > Could you please let me know the versions and flavours that you are using? > > Thanks, > -Sujith > Clang on a linux install gives the same errors, as far as I can see. What I'm using is clang 3.4 on Fedora 20, and clang 3.3 on FreeBSD 10. If you like, if you just fix clang on Linux compilation, I can check for any additional errors on FreeBSD and get back to you on them, rather than you having to install a FreeBSD system right away. /Bruce