Skip to content

Commit 06ec64b

Browse files
Christoph Hellwigmasahir0y
authored andcommitted
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: Christoph Hellwig <hch@lst.de> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 1572497 commit 06ec64b

50 files changed

Lines changed: 59 additions & 206 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ source "security/Kconfig"
3030
source "crypto/Kconfig"
3131

3232
source "lib/Kconfig"
33+
34+
source "lib/Kconfig.debug"

‎arch/alpha/Kconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,6 @@ config SRM_ENV
710710

711711
endmenu
712712

713-
source "arch/alpha/Kconfig.debug"
714-
715713
# DUMMY_CONSOLE may be defined in drivers/video/console/Kconfig
716714
# but we also need it if VGA_HOSE is set
717715
config DUMMY_CONSOLE

‎arch/alpha/Kconfig.debug‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
menu "Kernel hacking"
3-
4-
source "lib/Kconfig.debug"
52

63
config EARLY_PRINTK
74
bool
@@ -39,5 +36,3 @@ config MATHEMU
3936
This option is required for IEEE compliant floating point arithmetic
4037
on the Alpha. The only time you would ever not say Y is to say M in
4138
order to debug the code. Say Y unless you know what you are doing.
42-
43-
endmenu

‎arch/arc/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,5 +574,4 @@ source "drivers/pci/Kconfig"
574574

575575
endmenu
576576

577-
source "arch/arc/Kconfig.debug"
578577
source "kernel/power/Kconfig"

‎arch/arc/Kconfig.debug‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
menu "Kernel hacking"
3-
4-
source "lib/Kconfig.debug"
52

63
config 16KSTACKS
74
bool "Use 16Kb for kernel stacks instead of 8Kb"
@@ -11,5 +8,3 @@ config 16KSTACKS
118
This increases the resident kernel footprint and will cause less
129
threads to run on the system and also increase the pressure
1310
on the VM subsystem for higher order allocations.
14-
15-
endmenu

‎arch/arm/Kconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,8 +2191,6 @@ endmenu
21912191

21922192
source "drivers/firmware/Kconfig"
21932193

2194-
source "arch/arm/Kconfig.debug"
2195-
21962194
if CRYPTO
21972195
source "arch/arm/crypto/Kconfig"
21982196
endif

‎arch/arm/Kconfig.debug‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
menu "Kernel hacking"
3-
4-
source "lib/Kconfig.debug"
52

63
config ARM_PTDUMP_CORE
74
def_bool n
@@ -1863,5 +1860,3 @@ config PID_IN_CONTEXTIDR
18631860
are planning to use hardware trace tools with this kernel.
18641861

18651862
source "drivers/hwtracing/coresight/Kconfig"
1866-
1867-
endmenu

‎arch/arm64/Kconfig‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,8 +1321,6 @@ source "drivers/acpi/Kconfig"
13211321

13221322
source "arch/arm64/kvm/Kconfig"
13231323

1324-
source "arch/arm64/Kconfig.debug"
1325-
13261324
if CRYPTO
13271325
source "arch/arm64/crypto/Kconfig"
13281326
endif

‎arch/arm64/Kconfig.debug‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
menu "Kernel hacking"
2-
3-
source "lib/Kconfig.debug"
41

52
config ARM64_PTDUMP_CORE
63
def_bool n
@@ -97,5 +94,3 @@ config ARM64_RELOC_TEST
9794
tristate "Relocation testing module"
9895

9996
source "drivers/hwtracing/coresight/Kconfig"
100-
101-
endmenu

‎arch/c6x/Kconfig‎

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,3 @@ source "kernel/Kconfig.preempt"
115115
source "kernel/Kconfig.hz"
116116

117117
endmenu
118-
119-
menu "Kernel hacking"
120-
121-
source "lib/Kconfig.debug"
122-
123-
config ACCESS_CHECK
124-
bool "Check the user pointer address"
125-
default y
126-
help
127-
Usually the pointer transfer from user space is checked to see if its
128-
address is in the kernel space.
129-
130-
Say N here to disable that check to improve the performance.
131-
132-
endmenu

0 commit comments

Comments
 (0)