From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 58AFD3B5 for ; Sun, 10 Apr 2016 21:26:03 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP; 10 Apr 2016 12:26:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,462,1455004800"; d="scan'208";a="82597198" Received: from sie-lab-214-036.ir.intel.com (HELO sie-lab-214-36.ir.intel.com) ([10.237.214.36]) by fmsmga004.fm.intel.com with ESMTP; 10 Apr 2016 12:26:01 -0700 From: Pablo de Lara To: dev@dpdk.org Cc: Pablo de Lara Date: Sun, 10 Apr 2016 20:25:51 +0100 Message-Id: <1460316352-16209-2-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1460316352-16209-1-git-send-email-pablo.de.lara.guarch@intel.com> References: <1460316352-16209-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/2] xen: fix compilation on 32 bits X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Apr 2016 19:26:03 -0000 Compilation fails on 32 bits on Xen driver, due to wrong casting: drivers/net/xenvirt/virtqueue.h: In function ‘virtqueue_enqueue_xmit’: drivers/net/xenvirt/virtqueue.h:234:24: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] start_dp[idx].addr = rte_pktmbuf_mtod(cookie, uint64_t); ^ Fixes: d6b324c00fc9 ("mbuf: get DMA address") Signed-off-by: Pablo de Lara --- drivers/net/xenvirt/virtqueue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/xenvirt/virtqueue.h b/drivers/net/xenvirt/virtqueue.h index e425a04..350eae3 100644 --- a/drivers/net/xenvirt/virtqueue.h +++ b/drivers/net/xenvirt/virtqueue.h @@ -231,7 +231,7 @@ virtqueue_enqueue_xmit(struct virtqueue *txvq, struct rte_mbuf *cookie) start_dp[idx].flags = VRING_DESC_F_NEXT; start_dp[idx].addr = (uintptr_t)NULL; idx = start_dp[idx].next; - start_dp[idx].addr = rte_pktmbuf_mtod(cookie, uint64_t); + start_dp[idx].addr = (uint64_t)rte_pktmbuf_mtod(cookie, uintptr_t); start_dp[idx].len = cookie->data_len; start_dp[idx].flags = 0; idx = start_dp[idx].next; -- 2.5.0