From patchwork Mon May 18 08:17:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Matz X-Patchwork-Id: 4767 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 499ABC32A; Mon, 18 May 2015 10:18:15 +0200 (CEST) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by dpdk.org (Postfix) with ESMTP id CC63AC2DC for ; Mon, 18 May 2015 10:18:12 +0200 (CEST) Received: by wicnf17 with SMTP id nf17so60051018wic.1 for ; Mon, 18 May 2015 01:18:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VWam8LkqBwZrpaoQ7BV3toIASZJJnrEtkGBCT+aVcg4=; b=Z6df3D8A5ErU6fZIySaGCiyLjYSpz/YW/7ibXcWulUsWiU8LCTnqo0dCsEkF7r4yIx uDyQxiqxWf7nigVF+CUrYXKv9IWeEyA5bc1myuJ+kothGJqa4WA8gfd22oimDZYLeuZh biuUR9b0csEQsNPKG/nPxDZ3ETI0KLL/GzVjb7LwJfBI2tOr5zxwH7i2C+KuzcUiH/nK cebZi4CcA77n8LXUGr8jw6iWME9aE5NKYwnpO0ntP+ytg2T5EF5iFwF/nsKwtWcn2Fxk HBiKD+SAVN5Lwsc0V0PEZ19PHNgN+xhvGuDEVq2QmvS0EIKYyKwa9r9GA2HJVWVTGHzq EqcQ== X-Gm-Message-State: ALoCoQkF0BSSIw+Mn7vcpUro1TD7BhCLGdWKNhGbmhiC43gFfJHJPYz9ZlXyp/s6cmTJcA6Afi6A X-Received: by 10.194.159.99 with SMTP id xb3mr943666wjb.57.1431937092642; Mon, 18 May 2015 01:18:12 -0700 (PDT) Received: from glumotte.dev.6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id ck16sm7664735wjb.37.2015.05.18.01.18.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 May 2015 01:18:12 -0700 (PDT) From: Olivier Matz To: dev@dpdk.org Date: Mon, 18 May 2015 10:17:59 +0200 Message-Id: <1431937081-20083-3-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1431937081-20083-1-git-send-email-olivier.matz@6wind.com> References: <1431937081-20083-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH 2/4] examples/netmap: fix compilation for x86_x32-native-linuxapp-gcc 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix a cast issue: examples/netmap_compat/lib/compat_netmap.c:827:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] Signed-off-by: Olivier Matz --- examples/netmap_compat/lib/compat_netmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/netmap_compat/lib/compat_netmap.c b/examples/netmap_compat/lib/compat_netmap.c index 1d86ef0..856ab6e 100644 --- a/examples/netmap_compat/lib/compat_netmap.c +++ b/examples/netmap_compat/lib/compat_netmap.c @@ -824,7 +824,7 @@ rte_netmap_mmap(void *addr, size_t length, return (MAP_FAILED); } - return ((void *)((uintptr_t)netmap.mem + offset)); + return (void *)((uintptr_t)netmap.mem + (uintptr_t)offset); } /**