bpfilter: remove extra header search paths for bpfilter_umh
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 31 Jan 2019 03:15:35 +0000 (12:15 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Feb 2019 04:11:43 +0000 (20:11 -0800)
Currently, the header search paths -Itools/include and
-Itools/include/uapi are not used. Let's drop the unused code.

We can remove -I. too by fixing up one C file.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bpfilter/Makefile
net/bpfilter/main.c

index 0947ee7f70d589543f87cae8f3e46bc3fc7f4ea3..5d6c7760142df1aa9d5ccb5b5494929c3cbdb34e 100644 (file)
@@ -5,7 +5,6 @@
 
 hostprogs-y := bpfilter_umh
 bpfilter_umh-objs := main.o
-KBUILD_HOSTCFLAGS += -I. -Itools/include/ -Itools/include/uapi
 HOSTCC := $(CC)
 
 ifeq ($(CONFIG_BPFILTER_UMH), y)
index 1317f108df8ae650454def33340546ab20eea03d..61ce8454a88e6dc17e31ff4fbf783418090989b0 100644 (file)
@@ -6,7 +6,7 @@
 #include <sys/socket.h>
 #include <fcntl.h>
 #include <unistd.h>
-#include "include/uapi/linux/bpf.h"
+#include "../../include/uapi/linux/bpf.h"
 #include <asm/unistd.h>
 #include "msgfmt.h"