[PATCH] cgroup: Fix CGROUP_BPF config dependency when !NET

From: Augusto Mecking Caringi
Date: Mon Jan 02 2017 - 10:01:57 EST


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

Signed-off-by: Augusto Mecking Caringi <augustocaringi@xxxxxxxxx>
---
init/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/Kconfig b/init/Kconfig
index 223b734..4d93004 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -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)
--
2.7.4