Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next] bpfilter: fix a build err
@ 2018-05-25 10:17 YueHaibing
  2018-05-25 16:19 ` Alexei Starovoitov
  2018-05-29 19:20 ` David Miller
  0 siblings, 2 replies; 5+ messages in thread
From: YueHaibing @ 2018-05-25 10:17 UTC (permalink / raw)
  To: davem, ast; +Cc: netdev, linux-kernel, YueHaibing

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>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-29 19:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-25 10:17 [PATCH net-next] bpfilter: fix a build err YueHaibing
2018-05-25 16:19 ` Alexei Starovoitov
2018-05-26  2:25   ` YueHaibing
2018-05-26  7:41     ` Yafang Shao
2018-05-29 19:20 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox