linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cgroup: Fix CGROUP_BPF config dependency when !NET
@ 2017-01-02 15:01 Augusto Mecking Caringi
  0 siblings, 0 replies; only message in thread
From: Augusto Mecking Caringi @ 2017-01-02 15:01 UTC (permalink / raw)
  To: Andy Lutomirski, Alexei Starovoitov, David S . Miller
  Cc: linux-kernel, Augusto Mecking Caringi

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@gmail.com>
---
 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-02 15:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-02 15:01 [PATCH] cgroup: Fix CGROUP_BPF config dependency when !NET Augusto Mecking Caringi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).