init/Kconfig: fix unmet direct dependencies
PATCH v2 1/1 init/Kconfig: fix unmet direct dependencies
Commit 3c07bfce92a5 ("proc: make config PROC_CHILDREN depend on PROC_FS") make config PROC_CHILDREN depend on PROC_FS.
When CONFIG_PROC_FS is not set and CONFIG_CHECKPOINT_RESTORE=y, make menuconfig screams like this:
WARNING: unmet direct dependencies detected for PROC_CHILDREN
Depends on [n]: PROC_FS [=n]
Selected by [y]:
- CHECKPOINT_RESTORE [=y]
CHECKPOINT_RESTORE would select PROC_CHILDREN which depends on PROC_FS, so add depends on PROC_FS to CHECKPOINT_RESTORE to fix this.
---
Changes in v2:
- change dependency of CHECKPOINT_RESTORE to depends on PROC_FS
--- init/Kconfig | 1 + 1 file changed, 1 insertion(+)
init/Kconfig +1 -0
@@ -1273,6 +1273,7 @@ endif # NAMESPACES config CHECKPOINT_RESTORE bool "Checkpoint/restore support" + depends on PROC_FS select PROC_CHILDREN select KCMP default n
Signature · 1 line
2.17.1
Quoted 12 lines · Ren Zhijie
Commit
3c07bfce92a5("proc: make configPROC_CHILDRENdepend onPROC_FS") make configPROC_CHILDRENdepend onPROC_FS.When
CONFIG_PROC_FSis not set andCONFIG_CHECKPOINT_RESTORE=y, make menuconfig screams like this:WARNING: unmet direct dependencies detected for
PROC_CHILDREN
Depends on [n]:PROC_FS[=n]
Selected by [y]:
-CHECKPOINT_RESTORE[=y]
Quoted 7 lines
CHECKPOINT_RESTOREwould selectPROC_CHILDRENwhich depends onPROC_FS, so add depends onPROC_FStoCHECKPOINT_RESTOREto fix this.Fixes 3c07bfce92a5 ("proc: make config PROC_CHILDREN depend on PROC_FS")Signed-off-by Ren Zhijie <[email protected]>---
Changes in v2:
- change dependency ofCHECKPOINT_RESTOREto depends onPROC_FS
Thanks.
Lukas
Quoted 19 lines
--- init/Kconfig | 1 + 1 file changed, 1 insertion(+)init/Kconfig +1
-1@@ -1273,6 +1273,7 @@ endif # NAMESPACES config CHECKPOINT_RESTORE bool "Checkpoint/restore support" + depends on PROC_FS select PROC_CHILDREN select KCMP default n --2.17.1