From patchwork Sun Dec 3 01:00:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 120434 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2866022qgn; Sat, 2 Dec 2017 17:03:21 -0800 (PST) X-Google-Smtp-Source: AGs4zMYE0wWvXDYFud1TvzPJW0PkTfXsAvtJZbPo0Gs/4aUr+HHP23Fcqqeo5Q0rjs3qHFsE1/LQ X-Received: by 10.200.3.158 with SMTP id t30mr15244717qtg.149.1512263001539; Sat, 02 Dec 2017 17:03:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512263001; cv=none; d=google.com; s=arc-20160816; b=EAKPjR0ULqKWyefgIhLp6bvvxl17JwDfG7A88JqklPgk6W97i5rtU+BI1bOcreljwS who9vWR7SWPRz1tUVvO3XCBZ/QBxRO7ekYQBzBcgmrkB6F191J5FV7JsHie5fAnV9JgD +UiHz6IhcWiN1Q3s8odTNmQtItRYbmiK5WJpeSJFepEubwc83tKPe6iPeC/xFP92PHmw +o0ILDhBe0sN/DZnO48+czGkeFMB+asFwDk5UogCwhCBhmIqfVAUUhFlm0Cz1GCXcJmN aPSUYVDxHQx0hxm26zkEWSF236byWK/xg7jhmXKh/GoW2fiZ1TOYmgCQrT16SzaXh8Vv qGxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:github-pr-num:references :in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=BgAhwmdyOSCP2oog4P0SKtiqMG2WB3vgz5eYFtPpC3w=; b=OC8mspdPJ8cNJ5lVkmbzyPoQPXBhBExUDB8c389WbWaDkiH5RHTuzbv+KbkSillvlB IhaFQj7193Qi4ZCTnWFW1w46ZPQ7MMQTscDwSTC8MDLU6wqurrxOt7uVQG/2qEIrO9J3 OI6qCVqPhO3kiyanI4jpGg/v1NGyVfl4qwNbTNEPUzei6Ldt8lV9OPVTHGdBQ4wSQmMV cRaBexW1vBg4mkNBob48P07AvLXznkkZqXFz9glOYEk2P0+2o1ibNAl09HAKMSjJfbpz w8vkWQaySSxTjN7LvGYN9lBkWSbEYJo5yBUu0s3+cNvBTCFc2pCCtXKgqM5yjnRSxv/C MF6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id f24si527221qtf.360.2017.12.02.17.03.21; Sat, 02 Dec 2017 17:03:21 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 454DB609C4; Sun, 3 Dec 2017 01:03:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id F1D426094A; Sun, 3 Dec 2017 01:01:28 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id A035860805; Sun, 3 Dec 2017 01:01:23 +0000 (UTC) Received: from forward102p.mail.yandex.net (forward102p.mail.yandex.net [77.88.28.102]) by lists.linaro.org (Postfix) with ESMTPS id 3B47960631 for ; Sun, 3 Dec 2017 01:00:18 +0000 (UTC) Received: from mxback8j.mail.yandex.net (mxback8j.mail.yandex.net [IPv6:2a02:6b8:0:1619::111]) by forward102p.mail.yandex.net (Yandex) with ESMTP id 30A04430256D for ; Sun, 3 Dec 2017 04:00:17 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback8j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id gGuS1OEOO6-0HFqY2Ex; Sun, 03 Dec 2017 04:00:17 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id rRTmwan6So-0GdmtCKd; Sun, 03 Dec 2017 04:00:16 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Sun, 3 Dec 2017 04:00:04 +0300 Message-Id: <1512262805-15125-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512262805-15125-1-git-send-email-odpbot@yandex.ru> References: <1512262805-15125-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 321 MIME-Version: 1.0 Subject: [lng-odp] [PATCH v1 5/6] linux-gen: dpdk: cast addresses to unsigned long rather than uint64_t X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov This is to remove the following error: pktio/dpdk.c: In function ‘mbuf_data_off’: pktio/dpdk.c:126:9: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] return (uint64_t)pkt_hdr->buf_hdr.seg[0].data - ^ pktio/dpdk.c:127:4: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] (uint64_t)mbuf->buf_addr; Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 321 (lumag:dpdk-system-master) ** https://github.com/Linaro/odp/pull/321 ** Patch: https://github.com/Linaro/odp/pull/321.patch ** Base sha: 5329e5211c447b9b823149baf76112eedfeb07fb ** Merge commit sha: 527862cca98549d4fc5bd0f966d3609477b20443 **/ platform/linux-generic/pktio/dpdk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/pktio/dpdk.c b/platform/linux-generic/pktio/dpdk.c index fa73cb93d..a3deea9fc 100644 --- a/platform/linux-generic/pktio/dpdk.c +++ b/platform/linux-generic/pktio/dpdk.c @@ -123,8 +123,8 @@ static unsigned cache_size(uint32_t num) static inline uint16_t mbuf_data_off(struct rte_mbuf *mbuf, odp_packet_hdr_t *pkt_hdr) { - return (uint64_t)pkt_hdr->buf_hdr.seg[0].data - - (uint64_t)mbuf->buf_addr; + return (unsigned long)pkt_hdr->buf_hdr.seg[0].data - + (unsigned long)mbuf->buf_addr; } /**