Skip to contentSkip to conversation

cgroup: Fix CGROUP_BPF config dependency when !NET

PATCH New Augusto Mecking Caringi 1 participant 1 message Jan 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cgroup: Fix CGROUP_BPF config dependency when !NET

CGROUP_BPF selects SOCK_CGROUP_DATA which depends on NET

So, if NET is not set the following warning is given:

warning: (CGROUP_BPF) selects SOCK_CGROUP_DATA which has unmet direct dependencies (NET)

Fix it by making CGROUP_BPF dependent of NET

---
 init/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
init/Kconfig +1 -1
index 223b734..4d93004 100644
@@ -1156,7 +1156,7 @@ config CGROUP_PERF
 
 config CGROUP_BPF
 	bool "Support for eBPF programs attached to cgroups"
-	depends on BPF_SYSCALL
+	depends on BPF_SYSCALL && NET
 	select SOCK_CGROUP_DATA
 	help
 	  Allow attaching eBPF programs to a cgroup using the bpf(2)
Signature · 1 line
2.7.4