Skip to content

Commit fa5b6ec

Browse files
labbottwildea01
authored andcommitted
lib/Kconfig.debug: Add ARCH_HAS_DEBUG_VIRTUAL
DEBUG_VIRTUAL currently depends on DEBUG_KERNEL && X86. arm64 is getting the same support. Rather than add a list of architectures, switch this to ARCH_HAS_DEBUG_VIRTUAL and let architectures select it as appropriate. Acked-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Mark Rutland <mark.rutland@arm.com> Suggested-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Laura Abbott <labbott@redhat.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 0c744ea commit fa5b6ec

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

arch/x86/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ config X86
4646
select ARCH_CLOCKSOURCE_DATA
4747
select ARCH_DISCARD_MEMBLOCK
4848
select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
49+
select ARCH_HAS_DEBUG_VIRTUAL
4950
select ARCH_HAS_DEVMEM_IS_ALLOWED
5051
select ARCH_HAS_ELF_RANDOMIZE
5152
select ARCH_HAS_FAST_MULTIPLIER

lib/Kconfig.debug

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,12 @@ config DEBUG_VM_PGFLAGS
622622

623623
If unsure, say N.
624624

625+
config ARCH_HAS_DEBUG_VIRTUAL
626+
bool
627+
625628
config DEBUG_VIRTUAL
626629
bool "Debug VM translations"
627-
depends on DEBUG_KERNEL && X86
630+
depends on DEBUG_KERNEL && ARCH_HAS_DEBUG_VIRTUAL
628631
help
629632
Enable some costly sanity checks in virtual to page code. This can
630633
catch mistakes with virt_to_page() and friends.

0 commit comments

Comments
 (0)