Skip to content

Commit

Permalink
bpfilter: remove extra header search paths for bpfilter_umh
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
masahir0y authored and davem330 committed Feb 4, 2019
1 parent ee825e8 commit 303a339
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion net/bpfilter/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion net/bpfilter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 303a339

Please sign in to comment.