linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/5] init: Do not select DEBUG_KERNEL by default
@ 2019-04-12  1:43 Sinan Kaya
  2019-04-12  1:43 ` [PATCH v4 1/5] init: Introduce DEBUG_MISC option Sinan Kaya
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Sinan Kaya @ 2019-04-12  1:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: josh, keescook, Sinan Kaya

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".

Sinan Kaya (5):
  init: Introduce DEBUG_MISC option
  powerpc: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC
  mips: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC
  xtensa: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC
  net: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC

 arch/mips/kernel/setup.c           | 2 +-
 arch/powerpc/kernel/sysfs.c        | 8 ++++----
 arch/xtensa/include/asm/irqflags.h | 2 +-
 arch/xtensa/kernel/smp.c           | 2 +-
 lib/Kconfig.debug                  | 9 +++++++++
 net/netfilter/core.c               | 2 +-
 6 files changed, 17 insertions(+), 8 deletions(-)

-- 
2.21.0


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

end of thread, other threads:[~2019-04-12  8:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-12  1:43 [PATCH v4 0/5] init: Do not select DEBUG_KERNEL by default Sinan Kaya
2019-04-12  1:43 ` [PATCH v4 1/5] init: Introduce DEBUG_MISC option Sinan Kaya
2019-04-12  3:01   ` Josh Triplett
2019-04-12  1:43 ` [PATCH v4 2/5] powerpc: Replace CONFIG_DEBUG_KERNEL with CONFIG_DEBUG_MISC Sinan Kaya
2019-04-12  1:43 ` [PATCH v4 3/5] mips: " Sinan Kaya
2019-04-12  1:43 ` [PATCH v4 4/5] xtensa: " Sinan Kaya
2019-04-12  1:43 ` [PATCH v4 5/5] net: " Sinan Kaya
2019-04-12  8:09   ` Florian Westphal
2019-04-12  3:02 ` [PATCH v4 0/5] init: Do not select DEBUG_KERNEL by default Josh Triplett
2019-04-12  3:13   ` Sinan Kaya
2019-04-12  4:05     ` Josh Triplett
2019-04-12  4:06       ` Sinan Kaya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).