From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 11/15] bus/dpaa: fix warning: "__WORDSIZE" is not defined, evaluates to 0 Date: Sat, 30 Mar 2019 23:36:31 +0100 Message-ID: <2451005.C0Vx1vMQiX@xps> References: <20190313170657.16688-1-ncopa@alpinelinux.org> <20190313170657.16688-12-ncopa@alpinelinux.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, hemant.agrawal@nxp.com To: Natanael Copa Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 217D61DB8 for ; Sat, 30 Mar 2019 23:36:34 +0100 (CET) In-Reply-To: <20190313170657.16688-12-ncopa@alpinelinux.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 13/03/2019 18:06, Natanael Copa: > There is no standard saying that __WORDSIZE should be be defined or in > what include it should be defined. Use a portable way to detect 64 bit > environment. > > This fixes a warning when building with musl libc: > > warning: "__WORDSIZE" is not defined, evaluates to 0 [-Wundef] > > Signed-off-by: Natanael Copa > --- [...] > -#if (__WORDSIZE == 64) > +#if (ULONG_MAX == 0xffffffffffffffff) There is a more explicit config in DPDK: RTE_ARCH_64