bpfilter: fix build dependency
authorAlexei Starovoitov <ast@kernel.org>
Thu, 24 May 2018 04:29:05 +0000 (21:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 May 2018 13:33:28 +0000 (09:33 -0400)
BPFILTER could have been enabled without INET causing this build error:
ERROR: "bpfilter_process_sockopt" [net/bpfilter/bpfilter.ko] undefined!

Fixes: d2ba09c17a06 ("net: add skeleton of bpfilter kernel module")
Reported-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bpfilter/Kconfig

index 60725c5f79db90fdbd0d40a0cdd6d8a5b3882977..a948b072c28f36451a587a88bcb6f86c32023693 100644 (file)
@@ -1,7 +1,7 @@
 menuconfig BPFILTER
        bool "BPF based packet filtering framework (BPFILTER)"
        default n
-       depends on NET && BPF
+       depends on NET && BPF && INET
        help
          This builds experimental bpfilter framework that is aiming to
          provide netfilter compatible functionality via BPF