From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 149CCA05D3 for ; Sat, 30 Mar 2019 23:36:36 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4C9041E33; Sat, 30 Mar 2019 23:36:35 +0100 (CET) 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B48A720FE0; Sat, 30 Mar 2019 18:36:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 30 Mar 2019 18:36:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=jLPNn8oaXoV1VKroxE1JcwBigzu13DZ5x9706z8EoaI=; b=FeVE92RKNDM5 Bg1QzL6sZPWO5hFS9/rG/lZzHEk23cmfroNaUH5cDVaRXGIceLC5NGpovOd/17Pf rG/f5lU0i9Ta1y00C1FdFKgVx2DVlG3o7tleiWb2phnAEjRmnCgP21FAiogkrPnZ DNw7nYgceaS3UgJQHGNfclyRT0Zijy8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=jLPNn8oaXoV1VKroxE1JcwBigzu13DZ5x9706z8Eo aI=; b=JnX+zHa6OREvjijkeIv6mdeY+q+rJuy9PkDdIaWUqJWfksdm/a878fz59 DPhbWvQuEjgOHVB9C53cc8C/L+qeruVPoZherTpaEwU/7mqLFCKo5cVYj8RZZO7W +vxW3hN60WANK4cwRNoxZbrVK0ikXU2ERebPcLnvwqrzR3MvZQVe6M8QeUpIbSTS oqPjOd6JSPM7anzCZpYg41lUTjn4Hxqe8Fe1jA4AqmCo4MrROwjLQ3iTsdvrb/qx crgS3B+/8jvINopNg8Wr0QX7+ED34p6pncKtBqBbpjao470Pzo8UONB8H0YgJxKC P2KdIYGIGUxqqPEVK5MjXuvQJgs0g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrkeelgdduieegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 1E9101031A; Sat, 30 Mar 2019 18:36:32 -0400 (EDT) From: Thomas Monjalon To: Natanael Copa Cc: dev@dpdk.org, hemant.agrawal@nxp.com Date: Sat, 30 Mar 2019 23:36:31 +0100 Message-ID: <2451005.C0Vx1vMQiX@xps> In-Reply-To: <20190313170657.16688-12-ncopa@alpinelinux.org> References: <20190313170657.16688-1-ncopa@alpinelinux.org> <20190313170657.16688-12-ncopa@alpinelinux.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v3 11/15] bus/dpaa: fix warning: "__WORDSIZE" is not defined, evaluates to 0 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190330223631.PaEDc-4zyjGVekpqw8-MzJ5K8fh8DESjSgIsBLMUPKE@z> 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