From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751765AbdLILyC (ORCPT ); Sat, 9 Dec 2017 06:54:02 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:43090 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbdLILxz (ORCPT ); Sat, 9 Dec 2017 06:53:55 -0500 X-Google-Smtp-Source: AGs4zMY2qxTCqqiPc2Cr1Ro+GGfIkEPM7er1nvlsKyIH7WKMPKAZelVE+onJku6BX4ag2OKI+8aleQ== From: Vincent Legoll 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@vger.kernel.org Cc: Vincent Legoll Subject: [PATCH] Make "Memory Debugging" a menuconfig to ease disabling it all Date: Sat, 9 Dec 2017 12:53:33 +0100 Message-Id: <20171209115333.9086-1-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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