The patch titled Subject: lib/: make "Memory Debugging" a menuconfig to ease disabling it all has been added to the -mm tree. Its filename is make-memory-debugging-a-menuconfig-to-ease-disabling-it-all.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/make-memory-debugging-a-menuconfig-to-ease-disabling-it-all.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/make-memory-debugging-a-menuconfig-to-ease-disabling-it-all.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Vincent Legoll <vincent.legoll@xxxxxxxxx> Subject: lib/: make "Memory Debugging" a menuconfig to ease disabling it all 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. Link: http://lkml.kernel.org/r/20171209174033.9425-2-vincent.legoll@xxxxxxxxx Signed-off-by: Vincent Legoll <vincent.legoll@xxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Byungchul Park <byungchul.park@xxxxxxx> Cc: "Paul E. McKenney" <paulmck@xxxxxxxxxxxxxxxxxx> Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> Cc: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Cc: Josh Poimboeuf <jpoimboe@xxxxxxxxxx> Cc: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> Cc: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxx> Cc: Nicholas Piggin <npiggin@xxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/Kconfig.debug | 28 +++++++++++++++++----------- lib/Kconfig.kasan | 3 --- 2 files changed, 17 insertions(+), 14 deletions(-) diff -puN lib/Kconfig.debug~make-memory-debugging-a-menuconfig-to-ease-disabling-it-all lib/Kconfig.debug --- a/lib/Kconfig.debug~make-memory-debugging-a-menuconfig-to-ease-disabling-it-all +++ a/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 @@ -539,9 +542,6 @@ config SLUB_STATS out which slabs are relevant to a particular load. Try running: slabinfo -DA -config HAVE_DEBUG_KMEMLEAK - bool - config DEBUG_KMEMLEAK bool "Kernel memory leak detector" depends on DEBUG_KERNEL && HAVE_DEBUG_KMEMLEAK @@ -636,9 +636,6 @@ config DEBUG_VM_PGFLAGS If unsure, say N. -config ARCH_HAS_DEBUG_VIRTUAL - bool - config DEBUG_VIRTUAL bool "Debug VM translations" depends on DEBUG_KERNEL && ARCH_HAS_DEBUG_VIRTUAL @@ -708,9 +705,6 @@ config DEBUG_HIGHMEM This option enables additional error checking for high memory systems. Disable for production systems. -config HAVE_DEBUG_STACKOVERFLOW - bool - config DEBUG_STACKOVERFLOW bool "Check for stack overflows" depends on DEBUG_KERNEL && HAVE_DEBUG_STACKOVERFLOW @@ -731,7 +725,19 @@ config DEBUG_STACKOVERFLOW source "lib/Kconfig.kasan" -endmenu # "Memory Debugging" +endif # DEBUG_MEMORY + +config HAVE_ARCH_KASAN + bool + +config ARCH_HAS_DEBUG_VIRTUAL + bool + +config HAVE_DEBUG_KMEMLEAK + bool + +config HAVE_DEBUG_STACKOVERFLOW + bool config ARCH_HAS_KCOV bool diff -puN lib/Kconfig.kasan~make-memory-debugging-a-menuconfig-to-ease-disabling-it-all lib/Kconfig.kasan --- a/lib/Kconfig.kasan~make-memory-debugging-a-menuconfig-to-ease-disabling-it-all +++ a/lib/Kconfig.kasan @@ -1,6 +1,3 @@ -config HAVE_ARCH_KASAN - bool - if HAVE_ARCH_KASAN config KASAN _ Patches currently in -mm which might be from vincent.legoll@xxxxxxxxx are make-memory-debugging-a-menuconfig-to-ease-disabling-it-all.patch make-runtime_tests-a-menuconfig-to-ease-disabling-it-all.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html