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 21136A0096 for ; Tue, 9 Apr 2019 22:06:53 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6B9BC5F0F; Tue, 9 Apr 2019 22:06:52 +0200 (CEST) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 08C2C58C4; Tue, 9 Apr 2019 22:06:45 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id EC1A0265D1; Tue, 9 Apr 2019 16:06:43 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 09 Apr 2019 16:06:43 -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; s=mesmtp; bh=DCvj3Iif6S 3M+alDFcEUX/6RwwSpcljakXIty0kPoKE=; b=d9lH8dLhx6l3cPrlkZj73bbwAs I4NfN3he7PUzGk4qUKMjz14a8iAc6J3Vtzp4c1DznNuif3c4q4xIxTLC7oprNAJY /sLQFhefbN0duXERz36QUtibmLEoMunqRJULDYgkbxvhVp9yKggIhFEx7nKDuF3E r/jAYI5fLchpfYx8o= 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=DCvj3Iif6S3M+alDFcEUX/6RwwSpcljakXIty0kPoKE=; b=hRNCJusD NMggkQm70ErYtkJQaVsivQNp9TMdcRvuWKEPCkFwTFvm0kO+iAZE/wL6Kw70nlOS Y+tuaWcZolhrznV8QOoYPtZXPkouXY0I9osZ1qUdQB1R5NJ2lvkBJVU6Qt3S49dI 88B2+ESCwujk6o2SC1pCjmcDzjf1Q5vGmeI6LyYP53zlycpqCqTtlfZICVnu4ryi 8TZ/xGOLLHRsbY23jH2jOkA6x6b+PcBypGjz7FrwQeAadxHzuV1DAK1yEGyTvFdN uLPRJ2Fnp3djkSK7YUYIAgeoaqMX3uIyTxpP0GSv+14c9SsNPHZCZvF7fbc5hatS QdivomS8lNuXuA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudehgddugeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecukf hppeejjedrudefgedrvddtfedrudekgeenucfrrghrrghmpehmrghilhhfrhhomhepthhh ohhmrghssehmohhnjhgrlhhonhdrnhgvthenucevlhhushhtvghrufhiiigvpedt 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 C42EDE452E; Tue, 9 Apr 2019 16:06:42 -0400 (EDT) From: Thomas Monjalon To: Gagandeep Singh , Pankaj Chauhan Cc: dev@dpdk.org, stable@dpdk.org Date: Tue, 9 Apr 2019 22:06:36 +0200 Message-Id: <20190409200636.2193-3-thomas@monjalon.net> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190409200636.2193-1-thomas@monjalon.net> References: <20190409194904.6822-1-thomas@monjalon.net> <20190409200636.2193-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH v2 2/2] net/enetc: fix big endian build X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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..ef0d7919f 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