Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3660546imm; Fri, 25 May 2018 09:20:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoE+Uvy4s0CF+sYmJE+kxFDtAK9ymlgH7ZbDwEe/TrIGJp5hbZ0rLhs2sMhBx3d+6SA24DM X-Received: by 2002:a62:a50c:: with SMTP id v12-v6mr3248041pfm.237.1527265255715; Fri, 25 May 2018 09:20:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527265255; cv=none; d=google.com; s=arc-20160816; b=ixMGzkDsejfKWbx47mKNe+SjuNn41oB/swtU5r8wiK669hyIoKKOd2Z8Tmrrjwsu9e REe0NSAe4cbJC0vp2k5lyx1nc/y8SBkUfGPpzNESKRl4JGG9WlVymzyD3zUehOMEw7sy ctlzxCtHqxsxQKiyM1PNY18pN5ZP2W8NvkKKnnt0Bu4CT/z7O5Qaa4dF3UMKzA3XGCfi 0vg6c6VE+OnwD/e3Ewuag135JmqXJcn93HCCMdKP+VrZbSqkWS9CQYl2OIk4tYZj8hQf orbJxIJiH5DBUE7WfLYJ/JupouGdYuy+v57HO51rZUmw1Dps62U8uoYTcI11M7OIEsEL hYKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=B+G9Ug69ouzjT44PFNBFveNx0DOzDLF3n+J23FWnLOY=; b=fVh7wjpgsqT1MQhGV5ldRN7SNezdxKhT+wLwexMwDZvNN0hjtVBUZX23xR0zCsLC4O 6bpH3rfsxNQO5/dmBZ6B6yTNTwVopa0Hk6iXZDAFNRwtKVx1pu46GOzv2XtFru5ukqON 867ROHNt/6zdhYUXjvuGix8C3PcRuCgjt9RXvVCEF8SEgmHmBiVCiXCKwSChE8pOg7xy QWa/z4mW9bwaSU8qJFr7PXfbjLD5HNF7dguHkVReyW8n+bnSSZgW4CFkKEBw+KUTXbaZ XWBB+u9RTRNSpfP9X1jSjXTVfd3EIIVt6sqw7Wlj5rAmJW+LBj/EG5EGyk1FIKIvKxSg 9vbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UAm4afEr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 98-v6si26257010pls.180.2018.05.25.09.20.41; Fri, 25 May 2018 09:20:55 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=UAm4afEr; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967081AbeEYQTb (ORCPT + 99 others); Fri, 25 May 2018 12:19:31 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:46074 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966854AbeEYQTa (ORCPT ); Fri, 25 May 2018 12:19:30 -0400 Received: by mail-pg0-f65.google.com with SMTP id w3-v6so2489807pgv.12; Fri, 25 May 2018 09:19:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=B+G9Ug69ouzjT44PFNBFveNx0DOzDLF3n+J23FWnLOY=; b=UAm4afErQmiI5Q9wRaY9lgPExP+8gEkCvQ2jtED2ZHopg1Ds/LfnVn1oy8S8h+1KcW XgalGAk5PF3cHDB2BYQv8myMwk0wxvcHvvKHX4MZEuq0aiKJtAacHHe5SwpSYVa9njqT kEcOy1nfAu3Hbhzuigm7hOySva44Q9l/Srxod8oKwkY+4h+OUepl8ABmzdEDe9tWDUfi Kn8Zpq7uYMEeZKA3u4egWoJLbGS05d14NaJhlJI8IXUeo7ykyyNwKZbE1oMwdXpPC/08 UeRzFS1MT683IUf/d3UPKxXXlUq+BYpHl4UNSJXLfvyle5Cd/SoC4eZpErCBe1ORI2Je 5iIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=B+G9Ug69ouzjT44PFNBFveNx0DOzDLF3n+J23FWnLOY=; b=i3hP0pVBJyTGfWzWn2hNp8enIx+yZIpoXbEM0kWJW7dJrlrbVbGeG8uQhxbbEBSGjJ v3S1dTpFadUCfyOfghB6edaGLDU4Exfhv6zaa0jHIxSNjk7eFHLIyPyw6Fih0MPFn0l5 dN76WhxGI50B2uZDuig/Hnr3NlBautWkyIvIWMQ3QqLZ1OlzuVeKxXxA8NbBrdH1mjaE IUkXdFc8FZb6UY9nPrzlOcxuSZKm7fMRvNKbNiXSlZSzMjPzN18kf2Upgjx731qbbjcH xoh3gxNGmAl94UwLNt3rmr7vXRT9vcwAmTgtaRHZHrNhsc/5HUCBjHr/apRM99jhZuah GPjQ== X-Gm-Message-State: ALKqPwfYmU1RtNJuKMbWove1CKsTK9+aintALulcwkhMruyXNFBFDqSC 2KHub62T74PIqWhcgwI+lLM= X-Received: by 2002:a62:883:: with SMTP id 3-v6mr3296191pfi.154.1527265169798; Fri, 25 May 2018 09:19:29 -0700 (PDT) Received: from ast-mbp ([2620:10d:c090:180::1:a20f]) by smtp.gmail.com with ESMTPSA id h84-v6sm4657342pfd.69.2018.05.25.09.19.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 09:19:28 -0700 (PDT) Date: Fri, 25 May 2018 09:19:26 -0700 From: Alexei Starovoitov To: YueHaibing Cc: davem@davemloft.net, ast@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] bpfilter: fix a build err Message-ID: <20180525161925.crdamzqjgs5wg77e@ast-mbp> References: <20180525101757.13756-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180525101757.13756-1-yuehaibing@huawei.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 25, 2018 at 06:17:57PM +0800, YueHaibing wrote: > gcc-7.3.0 report following err: > > HOSTCC net/bpfilter/main.o > In file included from net/bpfilter/main.c:9:0: > ./include/uapi/linux/bpf.h:12:10: fatal error: linux/bpf_common.h: No such file or directory > #include > > remove it by adding a include path. > Fixes: d2ba09c17a06 ("net: add skeleton of bpfilter kernel module") > > Signed-off-by: YueHaibing > --- > net/bpfilter/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/bpfilter/Makefile b/net/bpfilter/Makefile > index 2af752c..3f3cb87 100644 > --- a/net/bpfilter/Makefile > +++ b/net/bpfilter/Makefile > @@ -5,7 +5,7 @@ > > hostprogs-y := bpfilter_umh > bpfilter_umh-objs := main.o > -HOSTCFLAGS += -I. -Itools/include/ > +HOSTCFLAGS += -I. -Itools/include/ -Itools/include/uapi Strangely I don't see this error with gcc 7.3 I've tried this patch and it doesn't hurt, but before it gets applied could you please try the top two patches from this tree: https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git/?h=ipt_bpf in your environment? These two patches add the actual meat of bpfilter and I'd like to make sure the build setup is good for everyone before we proceed too far.