From: Randy Dunlap Date: Sat, 19 Nov 2022 05:51:17 +0000 (-0800) Subject: maple_tree: allow TEST_MAPLE_TREE only when DEBUG_KERNEL is set X-Git-Tag: io_uring-6.2-2022-12-19~10^2~107 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=845aad0aa038507c166cdc48fbf2e5d863fe73dc;p=linux-block.git maple_tree: allow TEST_MAPLE_TREE only when DEBUG_KERNEL is set Prevent a kconfig warning that is caused by TEST_MAPLE_TREE by adding a "depends on" clause for TEST_MAPLE_TREE since 'select' does not follow any kconfig dependencies. WARNING: unmet direct dependencies detected for DEBUG_MAPLE_TREE Depends on [n]: DEBUG_KERNEL [=n] Selected by [y]: - TEST_MAPLE_TREE [=y] && RUNTIME_TESTING_MENU [=y] Link: https://lkml.kernel.org/r/20221119055117.14094-1-rdunlap@infradead.org Fixes: 120b116208a0 ("maple_tree: reorganize testing to restore module testing") Signed-off-by: Randy Dunlap Reported-by: Geert Uytterhoeven Reported-by: kernel test robot Reviewed-by: Liam R. Howlett Signed-off-by: Andrew Morton --- diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 580e453e284e..a0dc28fdc567 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -2244,6 +2244,7 @@ config TEST_XARRAY tristate "Test the XArray code at runtime" config TEST_MAPLE_TREE + depends on DEBUG_KERNEL select DEBUG_MAPLE_TREE tristate "Test the Maple Tree code at runtime"