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: 1046558 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="owyCWe4/"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 445Gt05jDVz9s9L for ; Fri, 22 Feb 2019 14:24:40 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726574AbfBVDYa (ORCPT ); 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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 Tested-by: Guenter Roeck --- 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(+) 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)