Skip to content

Commit 9b2a60c

Browse files
ctmarinastorvalds
authored andcommitted
Kconfig: clean up the long arch list for the DEBUG_BUGVERBOSE config option
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>
1 parent b69ec42 commit 9b2a60c

8 files changed

Lines changed: 11 additions & 4 deletions

File tree

‎arch/arm64/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config ARM64
1010
select GENERIC_TIME_VSYSCALL
1111
select HARDIRQS_SW_RESEND
1212
select HAVE_ARCH_TRACEHOOK
13+
select HAVE_DEBUG_BUGVERBOSE
1314
select HAVE_DEBUG_KMEMLEAK
1415
select HAVE_DMA_API_DEBUG
1516
select HAVE_DMA_ATTRS

‎arch/frv/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ config FRV
88
select HAVE_UID16
99
select HAVE_GENERIC_HARDIRQS
1010
select GENERIC_IRQ_SHOW
11+
select HAVE_DEBUG_BUGVERBOSE
1112
select ARCH_HAVE_NMI_SAFE_CMPXCHG
1213
select GENERIC_CPU_DEVICES
1314
select ARCH_WANT_IPC_PARSE_VERSION

‎arch/m32r/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ config M32R
88
select HAVE_KERNEL_BZIP2
99
select HAVE_KERNEL_LZMA
1010
select ARCH_WANT_IPC_PARSE_VERSION
11+
select HAVE_DEBUG_BUGVERBOSE
1112
select HAVE_GENERIC_HARDIRQS
1213
select GENERIC_IRQ_PROBE
1314
select GENERIC_IRQ_SHOW

‎arch/m68k/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ config M68K
33
default y
44
select HAVE_IDE
55
select HAVE_AOUT if MMU
6+
select HAVE_DEBUG_BUGVERBOSE
67
select HAVE_GENERIC_HARDIRQS
78
select GENERIC_IRQ_SHOW
89
select GENERIC_ATOMIC64

‎arch/sh/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ config SUPERH
1313
select HAVE_DMA_ATTRS
1414
select HAVE_IRQ_WORK
1515
select HAVE_PERF_EVENTS
16+
select HAVE_DEBUG_BUGVERBOSE
1617
select ARCH_HAVE_CUSTOM_GPIO_H
1718
select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A)
1819
select PERF_USE_VMALLOC

‎arch/sparc/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ config SPARC
3232
select GENERIC_PCI_IOMAP
3333
select HAVE_NMI_WATCHDOG if SPARC64
3434
select HAVE_BPF_JIT
35+
select HAVE_DEBUG_BUGVERBOSE
3536
select GENERIC_SMP_IDLE_THREAD
3637
select GENERIC_CMOS_UPDATE
3738
select GENERIC_CLOCKEVENTS

‎arch/tile/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config TILE
1414
select GENERIC_IRQ_PROBE
1515
select GENERIC_PENDING_IRQ if SMP
1616
select GENERIC_IRQ_SHOW
17+
select HAVE_DEBUG_BUGVERBOSE
1718
select HAVE_SYSCALL_WRAPPERS if TILEGX
1819
select SYS_HYPERVISOR
1920
select ARCH_HAVE_NMI_SAFE_CMPXCHG

‎lib/Kconfig.debug‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -751,12 +751,12 @@ config DEBUG_HIGHMEM
751751
This options enables addition error checking for high memory systems.
752752
Disable for production systems.
753753

754+
config HAVE_DEBUG_BUGVERBOSE
755+
bool
756+
754757
config DEBUG_BUGVERBOSE
755758
bool "Verbose BUG() reporting (adds 70K)" if DEBUG_KERNEL && EXPERT
756-
depends on BUG
757-
depends on ARM || AVR32 || M32R || M68K || SPARC32 || SPARC64 || \
758-
FRV || SUPERH || GENERIC_BUG || BLACKFIN || MN10300 || \
759-
TILE || ARM64
759+
depends on BUG && (GENERIC_BUG || HAVE_DEBUG_BUGVERBOSE)
760760
default y
761761
help
762762
Say Y here to make BUG() panics output the file name and line number

0 commit comments

Comments
 (0)