• Sinan Kaya's avatar
    init: introduce DEBUG_MISC option · c66d7a27
    Sinan Kaya authored
    Patch series "init: Do not select DEBUG_KERNEL by default", v5.
    
    CONFIG_DEBUG_KERNEL has been designed to just enable Kconfig options.
    Kernel code generatoin should not depend on CONFIG_DEBUG_KERNEL.
    
    Proposed alternative plan: let's add a new symbol, something like
    DEBUG_MISC ("Miscellaneous debug code that should be under a more
    specific debug option but isn't"), make it depend on DEBUG_KERNEL and be
    "default DEBUG_KERNEL" but allow itself to be turned off, and then
    mechanically change the small handful of "#ifdef CONFIG_DEBUG_KERNEL" to
    "#ifdef CONFIG_DEBUG_MISC".
    
    This patch (of 5):
    
    Introduce DEBUG_MISC ("Miscellaneous debug code that should be under a
    more specific debug option but isn't"), make it depend on DEBUG_KERNEL
    and be "default DEBUG_KERNEL" but allow itself to be turned off, and
    then mechanically change the small handful of "#ifdef
    CONFIG_DEBUG_KERNEL" to "#ifdef CONFIG_DEBUG_MISC".
    
    Link: http://lkml.kernel.org/r/20190413224438.10802-2-okaya@kernel.orgSigned-off-by: default avatarSinan Kaya <okaya@kernel.org>
    Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
    Reviewed-by: default avatarKees Cook <keescook@chromium.org>
    Cc: Anders Roxell <anders.roxell@linaro.org>
    Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
    Cc: Christophe Leroy <christophe.leroy@c-s.fr>
    Cc:  Chris Zankel <chris@zankel.net>
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Florian Westphal <fw@strlen.de>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: James Hogan <jhogan@kernel.org>
    Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
    Cc: Max Filippov <jcmvbkbc@gmail.com>
    Cc: Michael Ellerman <mpe@ellerman.id.au>
    Cc: Michal Hocko <mhocko@suse.com>
    Cc: Mike Rapoport <rppt@linux.ibm.com>
    Cc: Pablo Neira Ayuso <pablo@netfilter.org>
    Cc: Paul Burton <paul.burton@mips.com>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Thomas Bogendoerfer <tbogendoerfer@suse.de>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    c66d7a27
Kconfig.debug 70.3 KB