Kconfig: clean up the long arch list for the DEBUG_BUGVERBOSE config option
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 8 Oct 2012 23:28:13 +0000 (16:28 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Oct 2012 07:22:14 +0000 (16:22 +0900)
Introduce HAVE_DEBUG_BUGVERBOSE config option and select it in
corresponding architecture Kconfig files.  Architectures that already
select GENERIC_BUG don't need to select HAVE_DEBUG_BUGVERBOSE.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/arm64/Kconfig
arch/frv/Kconfig
arch/m32r/Kconfig
arch/m68k/Kconfig
arch/sh/Kconfig
arch/sparc/Kconfig
arch/tile/Kconfig
lib/Kconfig.debug

index 5dc9273781d6338eefdd112fd9a8735f3d17fee0..a30856058742becc009159d6c07fa9d808f23e0b 100644 (file)
@@ -10,6 +10,7 @@ config ARM64
        select GENERIC_TIME_VSYSCALL
        select HARDIRQS_SW_RESEND
        select HAVE_ARCH_TRACEHOOK
+       select HAVE_DEBUG_BUGVERBOSE
        select HAVE_DEBUG_KMEMLEAK
        select HAVE_DMA_API_DEBUG
        select HAVE_DMA_ATTRS
index cc5709d183502be10785b8dfc4312a459d9fcef1..9d262645f6675275c9e2c7adca9a66b114d03b88 100644 (file)
@@ -8,6 +8,7 @@ config FRV
        select HAVE_UID16
        select HAVE_GENERIC_HARDIRQS
        select GENERIC_IRQ_SHOW
+       select HAVE_DEBUG_BUGVERBOSE
        select ARCH_HAVE_NMI_SAFE_CMPXCHG
        select GENERIC_CPU_DEVICES
        select ARCH_WANT_IPC_PARSE_VERSION
index 49498bbb96163ec10477fac83fdd9f21f277b5cc..e875fc3ce9cb041348372083801b497b9537e5d8 100644 (file)
@@ -8,6 +8,7 @@ config M32R
        select HAVE_KERNEL_BZIP2
        select HAVE_KERNEL_LZMA
        select ARCH_WANT_IPC_PARSE_VERSION
+       select HAVE_DEBUG_BUGVERBOSE
        select HAVE_GENERIC_HARDIRQS
        select GENERIC_IRQ_PROBE
        select GENERIC_IRQ_SHOW
index 3e2b2f66db607ac96eb6750b26aeae8ff80ce943..dae1e7e16a374d3e100c2f86115181ea2b0006ca 100644 (file)
@@ -3,6 +3,7 @@ config M68K
        default y
        select HAVE_IDE
        select HAVE_AOUT if MMU
+       select HAVE_DEBUG_BUGVERBOSE
        select HAVE_GENERIC_HARDIRQS
        select GENERIC_IRQ_SHOW
        select GENERIC_ATOMIC64
index cfbf3e3c982ba775a4e526febe48f46a37bc229b..3b3e27a3ff2c343e5e6552dc3e0f600edf879e68 100644 (file)
@@ -13,6 +13,7 @@ config SUPERH
        select HAVE_DMA_ATTRS
        select HAVE_IRQ_WORK
        select HAVE_PERF_EVENTS
+       select HAVE_DEBUG_BUGVERBOSE
        select ARCH_HAVE_CUSTOM_GPIO_H
        select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
        select PERF_USE_VMALLOC
index 274d6cf0ada2dceac34dd9dd29befd8cc94100b5..700a01adec3aa270543677d44394d08e303a23f3 100644 (file)
@@ -32,6 +32,7 @@ config SPARC
        select GENERIC_PCI_IOMAP
        select HAVE_NMI_WATCHDOG if SPARC64
        select HAVE_BPF_JIT
+       select HAVE_DEBUG_BUGVERBOSE
        select GENERIC_SMP_IDLE_THREAD
        select GENERIC_CMOS_UPDATE
        select GENERIC_CLOCKEVENTS
index 9a0d77d3ba148069ce146f5b433c842c4c638422..df69d4296b4b2cceb36848eb9f2666389967e692 100644 (file)
@@ -14,6 +14,7 @@ config TILE
        select GENERIC_IRQ_PROBE
        select GENERIC_PENDING_IRQ if SMP
        select GENERIC_IRQ_SHOW
+       select HAVE_DEBUG_BUGVERBOSE
        select HAVE_SYSCALL_WRAPPERS if TILEGX
        select SYS_HYPERVISOR
        select ARCH_HAVE_NMI_SAFE_CMPXCHG
index 736db3990506d3d1876c5399e253fbd3d2a063e6..b7281e4d1473cb8f881d1b287cb714815755362f 100644 (file)
@@ -751,12 +751,12 @@ config DEBUG_HIGHMEM
          This options enables addition error checking for high memory systems.
          Disable for production systems.
 
+config HAVE_DEBUG_BUGVERBOSE
+       bool
+
 config DEBUG_BUGVERBOSE
        bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EXPERT
-       depends on BUG
-       depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || \
-                  FRV || SUPERH || GENERIC_BUG || BLACKFIN || MN10300 || \
-                  TILE || ARM64
+       depends on BUG && (GENERIC_BUG || HAVE_DEBUG_BUGVERBOSE)
        default y
        help
          Say Y here to make BUG() panics output the file name and line number