From: Lukas Bulwahn Date: Fri, 9 Sep 2022 12:25:29 +0000 (+0200) Subject: proc: make config PROC_CHILDREN depend on PROC_FS X-Git-Tag: baikal/aarch64/sdk6.1~2854^2~18 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=92936c6c31947e6bc468dcaf16e55a182b2b9f9a;p=kernel.git proc: make config PROC_CHILDREN depend on PROC_FS Commit b7b9612f9376 ("fs, proc: introduce CONFIG_PROC_CHILDREN") introduces the config PROC_CHILDREN to configure kernels to provide the /proc//task//children file. When one deselects PROC_FS for kernel builds without /proc/, the config PROC_CHILDREN has no effect anymore, but is still visible in menuconfig. Add the dependency on PROC_FS to make the PROC_CHILDREN option disappear for kernel builds without /proc/. Link: https://lkml.kernel.org/r/20220909122529.1941-1-lukas.bulwahn@gmail.com Fixes: b7b9612f9376 ("fs, proc: introduce CONFIG_PROC_CHILDREN") Signed-off-by: Lukas Bulwahn Cc: Iago López Galeiras Cc: Alexey Dobriyan Signed-off-by: Andrew Morton --- diff --git a/fs/proc/Kconfig b/fs/proc/Kconfig index c930001056f95..32b1116ae137c 100644 --- a/fs/proc/Kconfig +++ b/fs/proc/Kconfig @@ -92,6 +92,7 @@ config PROC_PAGE_MONITOR config PROC_CHILDREN bool "Include /proc//task//children file" + depends on PROC_FS default n help Provides a fast way to retrieve first level children pids of a task. See