From patchwork Fri Feb 22 03:23:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 158971 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1242776jaa; Thu, 21 Feb 2019 19:24:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IZs7ysGpEsIulVX6AoeCvsZrqanOYGcaiJNipxzG3/W/zatyoo2/yOJvkttxR4KiECJR/a8 X-Received: by 2002:a17:902:822:: with SMTP id 31mr1973502plk.290.1550805876407; Thu, 21 Feb 2019 19:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550805876; cv=none; d=google.com; s=arc-20160816; b=pNJydixhHzFGJ8ROh/thQ69Rfk2MVOc9Ncx2D0pz9in35DCFS7G4NfgEcnp+usaG2T v3d/xXmGgoGD13PzdPn6iP1R5kpmDvo44OV5sFbIR3Miti4AkQBb9x0cKWyqM1mzfMmK WR1+CxDNTYTm/on+1mcs12s1Y/jJd1IrOSYb341zIeve+q6O3G+SE6ZYDhA4OsqhHBdQ dSx8GcIjJkZAsdXP8dpRpol6qKi8rhtQHD2WYQ+a/nlisyEhl3zgLgcg7fMAy43Bzols ZXOYqJjxZ7kf3o4ksKMm1uwWZ9BqSjH0Wb/Ip64nlAefNz4wYzlHiUZcQAQ/BBVI0xt/ sqIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=u4g9dlhB0DTvUHWHwr1e6a95y6E4VpHF+IesgzKDpNk=; b=EEamlCWKrQnK7jQUBdXjzEc/s+vBC+CLUESSXX4JR2qqEsqhjUtxORaDurXch7o88B xz1FnB0BuTO3eSAnPljxjIvXstaY2c9EZhYYUIdTbCK8XInpsGuNTFFC5265LfvRtx09 MekFfk8qek/PE799yTdwvxHXn64BDmxr8v46ivaKJz1pZ8PYnGfDRYjCSX7hTtPNcwMp xJL352ilmFilPs7WansxV0fpDvmeo5YjgC2LYOIvuEdQrI60WxZLpLeGFyFNZ7B7r0MV w0O1TnSIOHRUDGeuv7Cz/VUUOxD2Q+o9VVhiyw13aRREVea3sBiWrCUFOd5kP6Ey3zL/ L3aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="owyCWe4/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si303439pgp.30.2019.02.21.19.24.35; Thu, 21 Feb 2019 19:24:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b="owyCWe4/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726777AbfBVDYa (ORCPT + 32 others); Thu, 21 Feb 2019 22:24:30 -0500 Received: from conuserg-12.nifty.com ([210.131.2.79]:33342 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726213AbfBVDYa (ORCPT ); Thu, 21 Feb 2019 22:24:30 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id x1M3NPc0015648; Fri, 22 Feb 2019 12:23:25 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com x1M3NPc0015648 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1550805805; bh=u4g9dlhB0DTvUHWHwr1e6a95y6E4VpHF+IesgzKDpNk=; h=From:To:Cc:Subject:Date:From; b=owyCWe4/a7yBe5mcQ7XGld9CGrFfiz5Nv3alJNs7jxiY7k8T7N4SnTW/xgYafMFIv XYgyO6NcgyHgC1t3O2CBbImUNcQH/er/fkRHyRSnYXKsDLGtTYUL/Pv/DxXgimyinJ kaokzAjQE6Lh1p9N5bgCipY/L0FVGNKv7fCFNNMB6knrLDNNVQN8FAqF/6VnvShi0P oAWIFz6D/9xnVbhl9K0i/OU5bt7v39dCrSy26o0Zm6BlomO2b6dVlERDTHkPcuRw8L 8ccZZ0GP0zCWRPdMphjt8c6By/wEGqMTDiAOBjL1CQBlMn+OdMyk9L9nm95DnGPo/d kAo0waNANHk4Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: "David S . Miller" , netdev@vger.kernel.org, Guenter Roeck Cc: Masahiro Yamada , Song Liu , Alexei Starovoitov , Yonghong Song , linux-kernel@vger.kernel.org, Martin KaFai Lau , Daniel Borkmann Subject: [PATCH] bpfilter: re-add header search paths to tools include to fix build error Date: Fri, 22 Feb 2019 12:23:19 +0900 Message-Id: <1550805799-24572-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I thought header search paths to tools/include(/uapi) were unneeded, but it looks like a build error occurs depending on the compiler. Commit 303a339f30a9 ("bpfilter: remove extra header search paths for bpfilter_umh") reintroduced the build error fixed by commit ae40832e53c3 ("bpfilter: fix a build err"). Apology for the breakage, and thanks to Guenter for reporting this. Fixes: 303a339f30a9 ("bpfilter: remove extra header search paths for bpfilter_umh") Reported-by: Guenter Roeck Signed-off-by: Masahiro Yamada --- Guenter, Sorry for bothering you, but could you please test this with your compiler? I am also using GCC 7.3, but my compiler cannot reproduce the build error. net/bpfilter/Makefile | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 Tested-by: Guenter Roeck diff --git a/net/bpfilter/Makefile b/net/bpfilter/Makefile index 5d6c776..854395f 100644 --- a/net/bpfilter/Makefile +++ b/net/bpfilter/Makefile @@ -5,6 +5,7 @@ hostprogs-y := bpfilter_umh bpfilter_umh-objs := main.o +KBUILD_HOSTCFLAGS += -Itools/include/ -Itools/include/uapi HOSTCC := $(CC) ifeq ($(CONFIG_BPFILTER_UMH), y)