aboutsummaryrefslogtreecommitdiff
path: root/net/bpfilter
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-05-25 18:17:57 +0800
committerDavid S. Miller <davem@davemloft.net>2018-05-29 15:20:21 -0400
commitae40832e53c33fab2755571dabc1378117bc50d4 (patch)
tree06ceaf7cdf20f5a4150c186827927a38e6aa8904 /net/bpfilter
parent2d68c0745a0e8349ff71b04af5ee020d40f78d90 (diff)
bpfilter: fix a build err
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 <linux/bpf_common.h> remove it by adding a include path. Fixes: d2ba09c17a06 ("net: add skeleton of bpfilter kernel module") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bpfilter')
-rw-r--r--net/bpfilter/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bpfilter/Makefile b/net/bpfilter/Makefile
index 2af752c8ef5e..3f3cb87c668f 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