From patchwork Wed Oct 28 19:29:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 55719 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp139072lbr; Wed, 28 Oct 2015 12:36:14 -0700 (PDT) X-Received: by 10.50.43.162 with SMTP id x2mr5014622igl.82.1446060974113; Wed, 28 Oct 2015 12:36:14 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id b72si2645204ioe.41.2015.10.28.12.36.13; Wed, 28 Oct 2015 12:36:14 -0700 (PDT) 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.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 85BCB61FF7; Wed, 28 Oct 2015 19:36:13 +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.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 6EDE662008; Wed, 28 Oct 2015 19:30:56 +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 C2C0D6200B; Wed, 28 Oct 2015 19:30:52 +0000 (UTC) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by lists.linaro.org (Postfix) with ESMTPS id 10A966198E for ; Wed, 28 Oct 2015 19:29:30 +0000 (UTC) Received: by wicfv8 with SMTP id fv8so24958316wic.0 for ; Wed, 28 Oct 2015 12:29:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=/QwSsT8UDVfKun0bJGhAJQtCF2OQlpjrDj2UR8I0lbQ=; b=pEIoG7F/BOzl3p/mSOarGDAJCWIbCI8PLxZZ+KTVOUhoxtwKM4cpkoF7jh4tG+bK3J Ctxk2G18q1sXAF90mCUo8cHo7X4MYSFFxnlxwIdbvid12yaYrBscH41PKVsscN+rOqpr f3BF89ezY8R2OLs36Yzg/EnqSS+b3T7/Y5rEGx+b3IZSKqg3eVM2GS/3RF5lnMowYg1Q lfnH3ziHhOQh4YeM+gH5FO6J7VCDXtyQ/E6N1NgZ4V3uBCoHbWC8/odtXMNeepBo7Mub CWhYcU3HLS6Wt4kjUu2wfyXzVcDrgGoSNjlynUqov2TFBAvdW0OQV2pc+UkxMvJr+abE TX7Q== 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:in-reply-to :references; bh=/QwSsT8UDVfKun0bJGhAJQtCF2OQlpjrDj2UR8I0lbQ=; b=Bp3Q9+GCu2EADcnah8owJ3Rv8Om4mu+DTOSfsBPd4lKtLmE5vspXVDU9fbA8lSgYWQ a70MeJ0Y1+e9kfu8xJbTqLSpNwQCJm4ZijnX5vKOkJaxWRZTLxlfL8WQ41aKZSAGFJNm uN/SGb5mbTxyImMkWr7QhIi4GBBY/4hJScMizw8v8phTdnSUQ+vYpAVZEqMfaNYfCI1D Y3Vqrsa7q9/sz6Awpb4yZPQkh+QDOczErEBKIxqnqeo+rmda1+EZX+6x8WXqQctmr12t 1UyfpofAihrTPQDwbS2lWz3CQq3sTI4mlf/5Fhz2zu++p85un2acJaGpUu16OU+mm1w1 ggdA== X-Gm-Message-State: ALoCoQnr/nj2UF1ak+TZNAiGp6fquGjsKm1v/yGkj8Z8oFYFKGrG+E8y9c0TNLI6pbQo52jk3NOR X-Received: by 10.194.242.106 with SMTP id wp10mr36033704wjc.116.1446060569241; Wed, 28 Oct 2015 12:29:29 -0700 (PDT) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::abcd]) by smtp.gmail.com with ESMTPSA id h4sm31286154wjx.41.2015.10.28.12.29.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Oct 2015 12:29:28 -0700 (PDT) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Wed, 28 Oct 2015 19:29:11 +0000 Message-Id: <1446060551-21029-10-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1446060551-21029-1-git-send-email-stuart.haslam@linaro.org> References: <1446060551-21029-1-git-send-email-stuart.haslam@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 9/9] 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 --- 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