From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH 7/7] eal: improve musl compatibility Date: Wed, 29 Aug 2018 13:40:38 +0100 Message-ID: <20180829124038.GC39260@bricha3-MOBL.ger.corp.intel.com> References: <4f7ac27b4fe1561fd3e3358a89f89ce025a7a128.1535543250.git.anatoly.burakov@intel.com> <20180829123926.GB39260@bricha3-MOBL.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, dpdk@stormmq.com To: Anatoly Burakov Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 767795A for ; Wed, 29 Aug 2018 14:40:42 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20180829123926.GB39260@bricha3-MOBL.ger.corp.intel.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 Wed, Aug 29, 2018 at 01:39:26PM +0100, Bruce Richardson wrote: > On Wed, Aug 29, 2018 at 12:56:21PM +0100, Anatoly Burakov wrote: > > Musl complains about pthread id being of wrong size. Fix it by > > casting to 64-bit and printing 64-bit hex unconditionally. > > > > Signed-off-by: Anatoly Burakov > > --- > Given that on linux pthread_t is a pointer type, will this not give other > warnings of casting from pointer to integer of a different type when s/type/size/ > compiling 32-bit? For safety I suggest casting to long or uintptr_t > instead, to ensure we always get an int of the right size. > > /Bruce