Skip to contentSkip to conversation

proc: make config PROC_CHILDREN depend on PROC_FS

PATCH Applied Lukas Bulwahn 1 participant 1 message Sep 9, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: make config PROC_CHILDREN depend on PROC_FS

Commit 2e13ba54a268 ("fs, proc: introduce CONFIG_PROC_CHILDREN") introduces the config PROC_CHILDREN to configure kernels to provide the /proc/<pid>/task/<tid>/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/.

Fixes 2e13ba54a268 ("fs, proc: introduce CONFIG_PROC_CHILDREN")
---
 fs/proc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
fs/proc/Kconfig +1 -0
index c930001056f9..32b1116ae137 100644
@@ -92,6 +92,7 @@ config PROC_PAGE_MONITOR
 
 config PROC_CHILDREN
 	bool "Include /proc/<pid>/task/<tid>/children file"
+	depends on PROC_FS
 	default n
 	help
 	  Provides a fast way to retrieve first level children pids of a task. See
Signature · 1 line
2.17.1