From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id D35155A for ; Wed, 29 Aug 2018 14:39:30 +0200 (CEST) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2018 05:39:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,303,1531810800"; d="scan'208";a="85460538" Received: from bricha3-mobl.ger.corp.intel.com ([10.237.221.107]) by fmsmga001.fm.intel.com with SMTP; 29 Aug 2018 05:39:27 -0700 Received: by (sSMTP sendmail emulation); Wed, 29 Aug 2018 13:39:27 +0100 Date: Wed, 29 Aug 2018 13:39:26 +0100 From: Bruce Richardson To: Anatoly Burakov Cc: dev@dpdk.org, dpdk@stormmq.com Message-ID: <20180829123926.GB39260@bricha3-MOBL.ger.corp.intel.com> References: <4f7ac27b4fe1561fd3e3358a89f89ce025a7a128.1535543250.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4f7ac27b4fe1561fd3e3358a89f89ce025a7a128.1535543250.git.anatoly.burakov@intel.com> Organization: Intel Research and Development Ireland Ltd. User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [dpdk-dev] [PATCH 7/7] eal: improve musl compatibility X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2018 12:39:31 -0000 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 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