Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3300241imm; Fri, 25 May 2018 03:21:53 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqC549dOsKFIITUtBUkH7o7WTqY8zslLCwAok7pAkvXXrmbtJJH29/jXuIx+hiw1lLIkjWS X-Received: by 2002:a63:7a11:: with SMTP id v17-v6mr1485168pgc.97.1527243713498; Fri, 25 May 2018 03:21:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527243713; cv=none; d=google.com; s=arc-20160816; b=OymEzlsoGtF8dBnkRaJBFwZuW/LWA1Qd49riYeeX3iTStzTanmEQ+tQxKYT1uUXuYa l9Zy3rj/xf448DQ7FjJp8s6VyEGvYRxJj72VMcjQNUeuuSR4+xgubSmV2geR19DAJKeg NF+a1zFkej2tofdHcvuCp2OJwlMgFAENcM6VwuewtzZ9X9nzQBIXwvMJBwY2D2x39iRo uFpBj5EBcQkW6qUMupOVzBymnSn4HfLPNK+M3r7s0S5sZwcCPEhmegQDzQRgAkA4rLuk XjyzamHqIOa9BYTLlBzUzRCA3XzIPJtAVN8hxvPfqCgtmKqmCbcBdJXtOLup5EeHuIKD rNgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=qAD7HB5Dnf2mjLis1Q4h/4edJUNg/R8TaGFa1QU4sjc=; b=V6MZgOwOlBL7uVAfn87d9d1MuXRH4F/kT/Ut504pq7EqjWJninNheyFqRPDT+rf0az WkkbCnNDVxlQf5T8cx/WKEy8A8mwqSuiFLGt2x+WnmP1CgoYnH1JIcMz8e7IZQXkagrg zq7rWPLkYuqgsK7xNIw9Z6a/o8KSNSL0iwZXyN+iVymDpj+jO+6ax/vuqcUHZt80WZto bWjy9zahFHH7t2CF9UNiG/yPPTyEyXXNzO+SKYsGsL+9bMPCSBRdbwI3C5QoDrQNv8k9 Ansuoo7+U8o/9jYYuxIbJpQoapTOdWGA9Z9ojhzbWZzTEoTBcQiqTftdzKbvwFQ1ZKNB Mimg== ARC-Authentication-Results: i=1; mx.google.com; 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 e191-v6si18600402pgc.233.2018.05.25.03.21.38; Fri, 25 May 2018 03:21:53 -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; 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 S936148AbeEYKT6 (ORCPT + 99 others); Fri, 25 May 2018 06:19:58 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55706 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S936009AbeEYKT4 (ORCPT ); Fri, 25 May 2018 06:19:56 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B81C366299F96; Fri, 25 May 2018 18:19:53 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.382.0; Fri, 25 May 2018 18:19:46 +0800 From: YueHaibing To: , CC: , , YueHaibing Subject: [PATCH net-next] bpfilter: fix a build err Date: Fri, 25 May 2018 18:17:57 +0800 Message-ID: <20180525101757.13756-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ifeq ($(CONFIG_BPFILTER_UMH), y) # builtin bpfilter_umh should be compiled with -static # since rootfs isn't mounted at the time of __init -- 2.7.0