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 DCC99A0096 for ; Tue, 9 Apr 2019 21:49:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C51665B16; Tue, 9 Apr 2019 21:49:24 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 2A9945911; Tue, 9 Apr 2019 21:49:20 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 99AE626452; Tue, 9 Apr 2019 15:49:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 09 Apr 2019 15:49:19 -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-type:content-transfer-encoding; s=mesmtp; bh=ZACQXtOnUP9VvQoCCMbHk4VGGr/7mZkUh2U+kVnyq1k=; b=l6v8yxHNvIwG 4Knhc/8h41qAFTYSUW68paW/pC+S+y3h54REauahfbbWrJX8ZdA/+GXUEc3WYGkL p7q3LdWK2RVGNe+n2d5MugI9dqqlbBLXe9u13WRJkUGfgvqLnImpHFGpBgk/da6Q usOKEcQUWbioFdBBEz7gTFGEcRgW5qU= 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=ZACQXtOnUP9VvQoCCMbHk4VGGr/7mZkUh2U+kVnyq 1k=; b=ejaHmmdUeDJdyNZgQUPuNJfkuukIPX0hibEloGP3jKINEAeclA4hR8ISe pez3/mXFxG3mULExJ7XvEZ6Bb/Gz792iyOmDF0lMDQNPmb3ARVjsO28vguUBYuNV DQU8PcPbpQr1lpgraVZ0vBTX6TT80Ps7Y9+4nAOqzd8460qXuq09HeWWZT8n96Rv Dq9Tn1F9Pd80Rdnow7mg7BXPh68xRZHyPueUkWz3/ViVn1OqxcAcBFvVMeCYRz0l bvXCudwKOny+kNyGDxyMYZa0cOjKCRJQxchXoIpziw4rtQoCat5dl/fz6aGp5wyf Ps3mNNWr6Wv2dbsZ1CGdwY4t0iSjw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehgddugeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc fkphepjeejrddufeegrddvtdefrddukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpeht hhhomhgrshesmhhonhhjrghlohhnrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd 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 139BBE4210; Tue, 9 Apr 2019 15:49:17 -0400 (EDT) From: Thomas Monjalon To: qiming.yang@intel.com, wenzhuo.lu@intel.com, ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com, Gagandeep Singh , Pankaj Chauhan Cc: ferruh.yigit@intel.com, dev@dpdk.org, stable@dpdk.org Date: Tue, 9 Apr 2019 21:49:04 +0200 Message-Id: <20190409194904.6822-3-thomas@monjalon.net> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190409194904.6822-1-thomas@monjalon.net> References: <20190409194904.6822-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 2/2] net/enetc: fix big endian build 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: <20190409194904.2YZbLS1Q3VPyVlpmNJBc0DNNSr_BDnLAnf6X11GSMnA@z> Compilation was failing when using a big endian toolchain: drivers/net/enetc/enetc_rxtx.c:92:21: error: passing argument 1 of ‘rte_constant_bswap64’ makes integer from pointer without a cast Fixes: 469c6111a799 ("net/enetc: enable Rx and Tx") Cc: g.singh@nxp.com Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon --- drivers/net/enetc/enetc_rxtx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/enetc/enetc_rxtx.c b/drivers/net/enetc/enetc_rxtx.c index 631e2430d..2a7362add 100644 --- a/drivers/net/enetc/enetc_rxtx.c +++ b/drivers/net/enetc/enetc_rxtx.c @@ -88,8 +88,9 @@ enetc_refill_rx_ring(struct enetc_bdr *rx_ring, const int buff_cnt) rx_swbd = &rx_ring->q_swbd[i]; rxbd = ENETC_RXBD(*rx_ring, i); for (j = 0; j < buff_cnt; j++) { - rx_swbd->buffer_addr = - rte_cpu_to_le_64(rte_mbuf_raw_alloc(rx_ring->mb_pool)); + rx_swbd->buffer_addr = (void*)(uintptr_t) + rte_cpu_to_le_64((uint64_t)(uintptr_t) + rte_mbuf_raw_alloc(rx_ring->mb_pool)); rxbd->w.addr = (uint64_t)(uintptr_t) rx_swbd->buffer_addr->buf_addr + rx_swbd->buffer_addr->data_off; -- 2.21.0