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.kicin...@netronome.com>
Signed-off-by: Alexei Starovoitov <a...@kernel.org>
---
 net/bpfilter/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bpfilter/Kconfig b/net/bpfilter/Kconfig
index 60725c5f79db..a948b072c28f 100644
--- a/net/bpfilter/Kconfig
+++ b/net/bpfilter/Kconfig
@@ -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
-- 
2.9.5

Reply via email to