public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Make "Memory Debugging" a menuconfig to ease disabling it all
@ 2017-12-09 11:53 Vincent Legoll
  2017-12-09 12:40 ` Vincent Legoll
  0 siblings, 1 reply; 7+ messages in thread
From: Vincent Legoll @ 2017-12-09 11:53 UTC (permalink / raw)
  To: Andrew Morton, Ingo Molnar, Byungchul Park, Peter Zijlstra,
	Paul E. McKenney, Josh Poimboeuf, Geert Uytterhoeven,
	Randy Dunlap, Luis R. Rodriguez, Nicholas Piggin, Thomas Gleixner,
	linux-kernel
  Cc: Vincent Legoll

No need to get into the submenu to disable all
"Memory Debugging"-related config entries.

This makes it easier to disable all "Memory Debugging" 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.

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
 lib/Kconfig.debug | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 947d3e2ed5c2..5062f52dbeec 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -436,7 +436,10 @@ config DEBUG_KERNEL
 	  Say Y here if you are developing drivers or trying to debug and
 	  identify kernel problems.
 
-menu "Memory Debugging"
+menuconfig DEBUG_MEMORY
+	bool "Memory Debugging"
+
+if DEBUG_MEMORY
 
 source mm/Kconfig.debug
 
@@ -731,7 +734,7 @@ config DEBUG_STACKOVERFLOW
 
 source "lib/Kconfig.kasan"
 
-endmenu # "Memory Debugging"
+endif # DEBUG_MEMORY
 
 config ARCH_HAS_KCOV
 	bool
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-12-15 20:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-09 11:53 [PATCH] Make "Memory Debugging" a menuconfig to ease disabling it all Vincent Legoll
2017-12-09 12:40 ` Vincent Legoll
2017-12-09 17:04   ` Randy Dunlap
2017-12-09 17:40     ` [PATCH,v2] " Vincent Legoll
2017-12-09 17:40       ` [PATCH] " Vincent Legoll
2017-12-13 11:04         ` Vincent Legoll
2017-12-15 20:21           ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox