cgroup: move CONFIG_SOCK_CGROUP_DATA to init/Kconfig
Subsystems (2)
PATCH 1/1 cgroup: move CONFIG_SOCK_CGROUP_DATA to init/Kconfig
We now 'select SOCK_CGROUP_DATA' but Kconfig complains that this is not right when CONFIG_NET is disabled and there is no socket interface:
warning: (CGROUP_BPF) selects SOCK_CGROUP_DATA which has unmet direct dependencies (NET)
I don't know what the correct solution for this is, but simply removing the dependency on NET from SOCK_CGROUP_DATA by moving it out of the 'if NET' section avoids the warning and does not produce other build errors.
---
There was an earlier patch by Augusto Mecking Caringi, which added a dependency, see https://lkml.org/lkml/2017/1/2/296.
I could not figure out whether CGROUP_BPF is meaningful without CONFIG_NET, my version of the patch assumes that it is. Applying either my version Augusto's to v4.10-rc will kill the warning.
--- init/Kconfig | 4 ++++ net/Kconfig | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-)
init/Kconfig +4 -0
@@ -1174,6 +1174,10 @@ config CGROUP_DEBUG Say N. +config SOCK_CGROUP_DATA + bool + default n + endif # CGROUPS config CHECKPOINT_RESTORE
net/Kconfig +0 -4
@@ -258,10 +258,6 @@ config XPS config HWBM bool -config SOCK_CGROUP_DATA - bool - default n - config CGROUP_NET_PRIO bool "Network priority cgroup" depends on CGROUPS
Signature · 1 line
2.9.0
David Miller
maintainerFrom: Arnd Bergmann <[email protected]>
Date: Tue, 10 Jan 2017 13:08:06 +0100
Quoted 12 lines
We now 'select
SOCK_CGROUP_DATA' butKconfigcomplains that this is not right whenCONFIG_NETis disabled and there is no socket interface:warning: (
CGROUP_BPF) selectsSOCK_CGROUP_DATAwhich has unmet direct dependencies (NET)I don't know what the correct solution for this is, but simply removing the dependency on NET from
SOCK_CGROUP_DATAby moving it out of the 'if NET' section avoids the warning and does not produce other build errors.Fixes 483c4933ea09 ("cgroup: Fix CGROUP_BPF config")Signed-off-by Arnd Bergmann <[email protected]>
Quoted 8 lines
---
There was an earlier patch by Augusto Mecking Caringi, which added a dependency, see https://lkml.org/lkml/2017/1/2/296.I could not figure out whether
CGROUP_BPFis meaningful withoutCONFIG_NET, my version of the patch assumes that it is. Applying either my version Augusto's to v4.10-rc will kill the warning.
CGROUP_BPF doesn't is not currently meaningful without CONFIG_NET, and especially SOCK_CGROUP_DATA is not meaningful without CONFIG_NET.
Patch applied, thanks.