Skip to content
Snippets Groups Projects
Commit 06ec64b8 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Masahiro Yamada
Browse files

Kconfig: consolidate the "Kernel hacking" menu


Move the source of lib/Kconfig.debug and arch/$(ARCH)/Kconfig.debug to
the top-level Kconfig.  For two architectures that means moving their
arch-specific symbols in that menu into a new arch Kconfig.debug file,
and for a few more creating a dummy file so that we can include it
unconditionally.

Also move the actual 'Kernel hacking' menu to lib/Kconfig.debug, where
it belongs.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 1572497c
No related branches found
No related tags found
No related merge requests found
Showing with 14 additions and 68 deletions
......@@ -30,3 +30,5 @@ source "security/Kconfig"
source "crypto/Kconfig"
source "lib/Kconfig"
source "lib/Kconfig.debug"
......@@ -710,8 +710,6 @@ config SRM_ENV
endmenu
source "arch/alpha/Kconfig.debug"
# DUMMY_CONSOLE may be defined in drivers/video/console/Kconfig
# but we also need it if VGA_HOSE is set
config DUMMY_CONSOLE
......
# SPDX-License-Identifier: GPL-2.0
menu "Kernel hacking"
source "lib/Kconfig.debug"
config EARLY_PRINTK
bool
......@@ -39,5 +36,3 @@ config MATHEMU
This option is required for IEEE compliant floating point arithmetic
on the Alpha. The only time you would ever not say Y is to say M in
order to debug the code. Say Y unless you know what you are doing.
endmenu
......@@ -574,5 +574,4 @@ source "drivers/pci/Kconfig"
endmenu
source "arch/arc/Kconfig.debug"
source "kernel/power/Kconfig"
# SPDX-License-Identifier: GPL-2.0
menu "Kernel hacking"
source "lib/Kconfig.debug"
config 16KSTACKS
bool "Use 16Kb for kernel stacks instead of 8Kb"
......@@ -11,5 +8,3 @@ config 16KSTACKS
This increases the resident kernel footprint and will cause less
threads to run on the system and also increase the pressure
on the VM subsystem for higher order allocations.
endmenu
......@@ -2191,8 +2191,6 @@ endmenu
source "drivers/firmware/Kconfig"
source "arch/arm/Kconfig.debug"
if CRYPTO
source "arch/arm/crypto/Kconfig"
endif
......
# SPDX-License-Identifier: GPL-2.0
menu "Kernel hacking"
source "lib/Kconfig.debug"
config ARM_PTDUMP_CORE
def_bool n
......@@ -1863,5 +1860,3 @@ config PID_IN_CONTEXTIDR
are planning to use hardware trace tools with this kernel.
source "drivers/hwtracing/coresight/Kconfig"
endmenu
......@@ -1321,8 +1321,6 @@ source "drivers/acpi/Kconfig"
source "arch/arm64/kvm/Kconfig"
source "arch/arm64/Kconfig.debug"
if CRYPTO
source "arch/arm64/crypto/Kconfig"
endif
menu "Kernel hacking"
source "lib/Kconfig.debug"
config ARM64_PTDUMP_CORE
def_bool n
......@@ -97,5 +94,3 @@ config ARM64_RELOC_TEST
tristate "Relocation testing module"
source "drivers/hwtracing/coresight/Kconfig"
endmenu
......@@ -115,18 +115,3 @@ source "kernel/Kconfig.preempt"
source "kernel/Kconfig.hz"
endmenu
menu "Kernel hacking"
source "lib/Kconfig.debug"
config ACCESS_CHECK
bool "Check the user pointer address"
default y
help
Usually the pointer transfer from user space is checked to see if its
address is in the kernel space.
Say N here to disable that check to improve the performance.
endmenu
# SPDX-License-Identifier: GPL-2.0
config ACCESS_CHECK
bool "Check the user pointer address"
default y
help
Usually the pointer transfer from user space is checked to see if its
address is in the kernel space.
Say N here to disable that check to improve the performance.
......@@ -55,9 +55,3 @@ menu "Kernel Features"
source "kernel/Kconfig.preempt"
endmenu
menu "Kernel hacking"
source "lib/Kconfig.debug"
endmenu
# dummy file, do not delete
......@@ -149,7 +149,3 @@ endchoice
source "kernel/Kconfig.hz"
endmenu
menu "Kernel hacking"
source "lib/Kconfig.debug"
endmenu
# dummy file, do not delete
......@@ -576,5 +576,3 @@ config MSPEC
If you have an ia64 and you want to enable memory special
operations support (formerly known as fetchop), say Y here,
otherwise say N.
source "arch/ia64/Kconfig.debug"
# SPDX-License-Identifier: GPL-2.0
menu "Kernel hacking"
source "lib/Kconfig.debug"
choice
prompt "Physical memory granularity"
......@@ -56,5 +53,3 @@ config IA64_DEBUG_IRQ
Selecting this option turns on bug checking for the IA-64 irq_save
and restore instructions. It's useful for tracking down spinlock
problems, but slow! If you're unsure, select N.
endmenu
......@@ -147,5 +147,3 @@ endmenu
endif
source "arch/m68k/Kconfig.devices"
source "arch/m68k/Kconfig.debug"
# SPDX-License-Identifier: GPL-2.0
menu "Kernel hacking"
source "lib/Kconfig.debug"
config BOOTPARAM
bool 'Compiled-in Kernel Boot Parameter'
......@@ -51,5 +48,3 @@ config BDM_DISABLE
Disable the ColdFire CPU's BDM signals.
endif
endmenu
......@@ -285,5 +285,3 @@ config PCI_XILINX
source "drivers/pci/Kconfig"
endmenu
source "arch/microblaze/Kconfig.debug"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment