From patchwork Tue Dec 15 11:18:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 58427 Delivered-To: patch@linaro.org Received: by 10.112.129.4 with SMTP id ns4csp128438lbb; Tue, 15 Dec 2015 03:18:23 -0800 (PST) X-Received: by 10.140.81.71 with SMTP id e65mr49697573qgd.27.1450178303719; Tue, 15 Dec 2015 03:18:23 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f16si700564qgd.120.2015.12.15.03.18.23; Tue, 15 Dec 2015 03:18:23 -0800 (PST) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4309661981; Tue, 15 Dec 2015 11:18:23 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=jAg9O/s6; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 39B63610E1; Tue, 15 Dec 2015 11:18:19 +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 19E15618CD; Tue, 15 Dec 2015 11:18:17 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by lists.linaro.org (Postfix) with ESMTPS id 251E1610AC for ; Tue, 15 Dec 2015 11:18:16 +0000 (UTC) Received: by mail-wm0-f50.google.com with SMTP id n186so89109395wmn.0 for ; Tue, 15 Dec 2015 03:18:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=/QwSsT8UDVfKun0bJGhAJQtCF2OQlpjrDj2UR8I0lbQ=; b=jAg9O/s682HIKTsDrwTpto6N6xhkqZm1yZ6NuZsP0lJMwhCJhoQ0Bf7uyUrOrhC1Iz WUj09B4SLmtVzs0Vs2GYznYJk6UiwSpg5M0s06am2R4LH79YwUcAL3ZqIB5nJl/UIc0+ ZGC+ElO1TnB086aMPtaAmKGZzS4gG6Xx9TvhE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=/QwSsT8UDVfKun0bJGhAJQtCF2OQlpjrDj2UR8I0lbQ=; b=bF3OOBGIrBM+QWXA+fN2uQfrMvKzFRZRl4bcA2xZY2UTuVNj3tGtlGM48L5kWhlYeg iHR4De+zXHu1AfXvGmLI3lOx41fz1vlitBJKwO1I9Raun35vfO2XgTYVTGLiB4UUT/3s gtkh/uy4Q8iU4TsZIr4Qt46lUUvaRSZvrl821dp6HTSUQniIGMk97qGbUDUM0X1Jxe8D p2JSWOT+1Pr8vy29XZnH+eZ5C2pgNwl8RgV3B+UK38qzOMBzs6FbK/30O4TkcqwGLjq3 NqCd8Z/eDxjMs3MzuFHsBZpm6YXWSbe9sXomWl2E0+yvZCEv2Evbs5Rh2nqvak/ue6zt cUkA== X-Gm-Message-State: ALoCoQnhlAX2JynYsC3lbYYKQsq3X0J/HVlqEEdorva57D1qNgHEjF7O5wR9rrYvKtei85ZEsKuDqpQOd++9Lb+Q8MEiJVtaKw== X-Received: by 10.28.93.195 with SMTP id r186mr3824631wmb.37.1450178295324; Tue, 15 Dec 2015 03:18:15 -0800 (PST) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id 143sm20601972wmv.18.2015.12.15.03.18.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 15 Dec 2015 03:18:14 -0800 (PST) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Tue, 15 Dec 2015 11:18:02 +0000 Message-Id: <1450178282-18869-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: include netmap headers with -isystem 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" The netmap header file has some dubious casts that generate errors when -Wcast-qual is enabled. Include it as a system header so that the compiler ignores those errors without having to ignore errors in our own source files. Signed-off-by: Stuart Haslam Reviewed-by: Bill Fischofer --- platform/linux-generic/m4/odp_netmap.m4 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/platform/linux-generic/m4/odp_netmap.m4 b/platform/linux-generic/m4/odp_netmap.m4 index 72c3fab..d39301f 100644 --- a/platform/linux-generic/m4/odp_netmap.m4 +++ b/platform/linux-generic/m4/odp_netmap.m4 @@ -14,7 +14,7 @@ AC_ARG_WITH([netmap-path], AC_HELP_STRING([--with-netmap-path=DIR path to netmap root directory], [(or in the default path if not specified).]), [NETMAP_PATH=$withval - AM_CPPFLAGS="$AM_CPPFLAGS -I$NETMAP_PATH/sys" + AM_CPPFLAGS="$AM_CPPFLAGS -isystem $NETMAP_PATH/sys" netmap_support=yes],[]) ########################################################################## @@ -35,13 +35,7 @@ else netmap_support=no fi -# Disable cast errors until the problem in netmap_user.h is fixed upstream -if test x$netmap_support = xyes -then -ODP_CFLAGS_EXTRA="$ODP_CFLAGS_EXTRA -Wno-cast-qual" -fi - ########################################################################## # Restore old saved variables ########################################################################## -CPPFLAGS=$OLD_CPPFLAGS \ No newline at end of file +CPPFLAGS=$OLD_CPPFLAGS