Skip to contentSkip to conversation

lib/: make RUNTIME_TESTS a menuconfig to ease disabling it all

PATCH New [email protected] 1 participant 1 message Feb 6, 2018 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 45/114 lib/: make RUNTIME_TESTS a menuconfig to ease disabling it all

From: Vincent Legoll <[email protected]>
Subject: lib/: make RUNTIME_TESTS a menuconfig to ease disabling it all

No need to get into the submenu to disable all related config entries.

This makes it easier to disable all RUNTIME_TESTS config options without entering the submenu. It will also enable one to see that en/dis-abled state from the outside menu.

This is only intended to change menuconfig UI, not change the config dependencies.

Cc Ingo Molnar <[email protected]>
Cc Byungchul Park <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc "Paul E. McKenney" <[email protected]>
Cc Josh Poimboeuf <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Randy Dunlap <[email protected]>
Cc "Luis R. Rodriguez" <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Thomas Gleixner <[email protected]>

---

 lib/Kconfig.debug |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
lib/Kconfig.debug renamed from lib/Kconfig.debug~make-runtime_tests-a-menuconfig-to-ease-disabling-it-all +5 -2
diff -puN lib/Kconfig.debug~make-runtime_tests-a-menuconfig-to-ease-disabling-it-all lib/Kconfig.debug
@@ -1641,7 +1641,10 @@ config DMA_API_DEBUG
 
 	  If unsure, say N.
 
-menu "Runtime Testing"
+menuconfig RUNTIME_TESTING_MENU
+	bool "Runtime Testing"
+
+if RUNTIME_TESTING_MENU
 
 config LKDTM
 	tristate "Linux Kernel Dump Test Tool Module"
@@ -1929,7 +1932,7 @@ config TEST_DEBUG_VIRTUAL
 
 	  If unsure, say N.
 
-endmenu # runtime tests
+endif # RUNTIME_TESTING_MENU
 
 config MEMTEST
 	bool "Memtest"

_