Commit ae40832e53c33fab2755571dabc1378117bc50d4

Authored by YueHaibing
Committed by David S. Miller
1 parent 2d68c0745a

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/bpfilter/Makefile
... ... @@ -5,7 +5,7 @@
5 5  
6 6 hostprogs-y := bpfilter_umh
7 7 bpfilter_umh-objs := main.o
8   -HOSTCFLAGS += -I. -Itools/include/
  8 +HOSTCFLAGS += -I. -Itools/include/ -Itools/include/uapi
9 9 ifeq ($(CONFIG_BPFILTER_UMH), y)
10 10 # builtin bpfilter_umh should be compiled with -static
11 11 # since rootfs isn't mounted at the time of __init