From: Vincent Legoll <vincent.legoll@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Ingo Molnar <mingo@kernel.org>,
Byungchul Park <byungchul.park@lge.com>,
Peter Zijlstra <peterz@infradead.org>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
Josh Poimboeuf <jpoimboe@redhat.com>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Randy Dunlap <rdunlap@infradead.org>,
"Luis R. Rodriguez" <mcgrof@kernel.org>,
Nicholas Piggin <npiggin@gmail.com>,
Thomas Gleixner <tglx@linutronix.de>,
linux-kernel@vger.kernel.org
Cc: Vincent Legoll <vincent.legoll@gmail.com>
Subject: [PATCH] Make "Memory Debugging" a menuconfig to ease disabling it all
Date: Sat, 9 Dec 2017 12:53:33 +0100 [thread overview]
Message-ID: <20171209115333.9086-1-vincent.legoll@gmail.com> (raw)
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
next reply other threads:[~2017-12-09 11:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-09 11:53 Vincent Legoll [this message]
2017-12-09 12:40 ` [PATCH] Make "Memory Debugging" a menuconfig to ease disabling it all 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171209115333.9086-1-vincent.legoll@gmail.com \
--to=vincent.legoll@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=byungchul.park@lge.com \
--cc=geert@linux-m68k.org \
--cc=jpoimboe@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mcgrof@kernel.org \
--cc=mingo@kernel.org \
--cc=npiggin@gmail.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=peterz@infradead.org \
--cc=rdunlap@infradead.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox