From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C1B49A0548; Sun, 28 Feb 2021 13:55:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C615A22A2BC; Sun, 28 Feb 2021 13:54:18 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id EDAEE22A2AD; Sun, 28 Feb 2021 13:54:15 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 61B055C00C6; Sun, 28 Feb 2021 07:54:15 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sun, 28 Feb 2021 07:54:15 -0500 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; s=fm3; bh=uKNtCLaRl165t 41Zw8dd6Y80pynR5lRv71HYgNtzFz4=; b=Wj4TxS8FJcLk8uwYSH19HVF6kbyQG oJVYYU7UT2uw/30Wmsiw3SCqCjxC0XBeer+jwJp7yaSG+9OqQefcWGjl36CcmeuJ KxkynJTLl7UekPgxQL7VuCMk7oz7eCscRHJcnwg/+GdDxvQqBPT4DXLR2xz1HfmI Xx+PO4qrKZBpftm9U4JvR1ii0KMM+xML1LMWNKhYUCvyO1ulsOUA2PJnRZSiWpe0 kEhgPwajgG30/mli2LPHGox0N2hojq1obAXUTdHAm4YVPvI0yJw8mXD2cI0qSD3y bMz9+WZPMtWFUZd6CfZWv16YFA/oFZ6S/buuVqaybxR61iJUq8Qu84eXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=uKNtCLaRl165t41Zw8dd6Y80pynR5lRv71HYgNtzFz4=; b=sZ+YN88+ N3yFuX3n0rLdhM0pZ73HIy75QDvUOr0j83l2ND8hGHSsxe91g2ffTT4Al7UKouJk 2/n6Z/9uXBD1uajKOY1ZDTKU09wQ3CzuVxX+JOdilLehMJlL6pP98RGhCRf17n3c pTsAPK5Cl19XlJUmqBsjG143zO1UGEPAKINkJIGLS7DNUEQQQaxRmWnTA6LLFEVN BD2qg3vHrA0KA+CV4sdOx6wuZB5hzRYdcZ6fvynrJyYPqd+2yIdBbk0VE4avc32h lHKDiT9ox4EQROJSjmUD2yo+iuJLlCDRHoSi/fOijIaO71Ab/RdIKHcyIoJKdY6i lhYytbfmJBGKGw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrleeigdegkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedtgfeu tdehtdegveenucfkphepjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuih iivgepudenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 611461080059; Sun, 28 Feb 2021 07:54:14 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: ncopa@alpinelinux.org, stable@dpdk.org, Hemant Agrawal , Sachin Saxena , Shreyansh Jain , Geoff Thorpe , Roy Pledge Date: Sun, 28 Feb 2021 13:53:44 +0100 Message-Id: <20210228125353.2436562-10-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210228125353.2436562-1-thomas@monjalon.net> References: <20190313170657.16688-1-ncopa@alpinelinux.org> <20210228125353.2436562-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v6 09/17] bus/dpaa: fix 64-bit arch detection X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" From: Natanael Copa There is no standard saying that __WORDSIZE should be be defined or in what include it should be defined. Use RTE_ARCH_64 instead. This solves a warning when building with musl libc: warning: "__WORDSIZE" is not defined, evaluates to 0 [-Wundef] Fixes: 847ee3bd0d1f ("bus/dpaa: support FMAN frame queue lookup") Cc: stable@dpdk.org Signed-off-by: Natanael Copa --- drivers/bus/dpaa/include/fsl_qman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h index 10212f0fd5..7ef2f3b2e3 100644 --- a/drivers/bus/dpaa/include/fsl_qman.h +++ b/drivers/bus/dpaa/include/fsl_qman.h @@ -16,7 +16,7 @@ extern "C" { #include /* FQ lookups (turn this on for 64bit user-space) */ -#if (__WORDSIZE == 64) +#ifdef RTE_ARCH_64 #define CONFIG_FSL_QMAN_FQ_LOOKUP /* if FQ lookups are supported, this controls the number of initialised, * s/w-consumed FQs that can be supported at any one time. -- 2.30.1