Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1549238

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

From Augusto Mecking Caringi <augustocaringi@gmail.com>
Newsgroups linux.kernel
Subject [PATCH] cgroup: Fix CGROUP_BPF config dependency when !NET
Date 2017-01-02 16:10 +0100
Message-ID <sVcpj-8X-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH] cgroup: Fix CGROUP_BPF config dependency when !NET Augusto Mecking Caringi <augustocaringi@gmail.com> - 2017-01-02 16:10 +0100

csiph-web