Skip to contentSkip to conversation

bpfilter: fix build dependency

PATCH Applied Alexei Starovoitov 3 participants 3 messages May 24, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpfilter: fix build dependency

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")
---
 net/bpfilter/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/bpfilter/Kconfig +1 -1
index 60725c5f79db..a948b072c28f 100644
@@ -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
Signature · 1 line
2.9.5
maintainer Applied
#2 lore raw
In reply to Alexei Starovoitov

From: Alexei Starovoitov <[email protected]>
Date: Wed, 23 May 2018 21:29:05 -0700

Quoted 6 lines

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

Applied, thanks.