Skip to content

Commit 657a520

Browse files
vapiertorvalds
authored andcommitted
init/Kconfig: re-order CONFIG_EXPERT options to fix menuconfig display
The kconfig language requires that dependent options all follow the menuconfig symbol in order to be collapsed below it. Recently some hidden options were added below the EXPERT menuconfig, but did not depend on EXPERT (because hidden options can't). This broke the display. So re-order all these options, and while we're here stick the PCI quirks under the EXPERT menu (since it isn't sitting with any related options). Before this commit, we get: [*] Configure standard kernel features (expert users) ---> [ ] Sysctl syscall support [*] Load all symbols for debugging/ksymoops ... [ ] Embedded system Now we get the older (and correct) behavior: [*] Configure standard kernel features (expert users) ---> [ ] Embedded system And if you go into the expert menu you get the expert options: [ ] Sysctl syscall support [*] Load all symbols for debugging/ksymoops ... Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Cc: zhangwei(Jovi) <jovi.zhangwei@huawei.com> Cc: Michal Marek <mmarek@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 966f309 commit 657a520

1 file changed

Lines changed: 40 additions & 40 deletions

File tree

‎init/Kconfig‎

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,6 +1221,35 @@ config SYSCTL
12211221
config ANON_INODES
12221222
bool
12231223

1224+
config HAVE_UID16
1225+
bool
1226+
1227+
config SYSCTL_EXCEPTION_TRACE
1228+
bool
1229+
help
1230+
Enable support for /proc/sys/debug/exception-trace.
1231+
1232+
config SYSCTL_ARCH_UNALIGN_NO_WARN
1233+
bool
1234+
help
1235+
Enable support for /proc/sys/kernel/ignore-unaligned-usertrap
1236+
Allows arch to define/use @no_unaligned_warning to possibly warn
1237+
about unaligned access emulation going on under the hood.
1238+
1239+
config SYSCTL_ARCH_UNALIGN_ALLOW
1240+
bool
1241+
help
1242+
Enable support for /proc/sys/kernel/unaligned-trap
1243+
Allows arches to define/use @unaligned_enabled to runtime toggle
1244+
the unaligned access emulation.
1245+
see arch/parisc/kernel/unaligned.c for reference
1246+
1247+
config HOTPLUG
1248+
def_bool y
1249+
1250+
config HAVE_PCSPKR_PLATFORM
1251+
bool
1252+
12241253
menuconfig EXPERT
12251254
bool "Configure standard kernel features (expert users)"
12261255
# Unhide debug options, to make the on-by-default options visible
@@ -1231,9 +1260,6 @@ menuconfig EXPERT
12311260
environments which can tolerate a "non-standard" kernel.
12321261
Only use this if you really know what you are doing.
12331262

1234-
config HAVE_UID16
1235-
bool
1236-
12371263
config UID16
12381264
bool "Enable 16-bit UID system calls" if EXPERT
12391265
depends on HAVE_UID16
@@ -1258,26 +1284,6 @@ config SYSCTL_SYSCALL
12581284

12591285
If unsure say N here.
12601286

1261-
config SYSCTL_EXCEPTION_TRACE
1262-
bool
1263-
help
1264-
Enable support for /proc/sys/debug/exception-trace.
1265-
1266-
config SYSCTL_ARCH_UNALIGN_NO_WARN
1267-
bool
1268-
help
1269-
Enable support for /proc/sys/kernel/ignore-unaligned-usertrap
1270-
Allows arch to define/use @no_unaligned_warning to possibly warn
1271-
about unaligned access emulation going on under the hood.
1272-
1273-
config SYSCTL_ARCH_UNALIGN_ALLOW
1274-
bool
1275-
help
1276-
Enable support for /proc/sys/kernel/unaligned-trap
1277-
Allows arches to define/use @unaligned_enabled to runtime toggle
1278-
the unaligned access emulation.
1279-
see arch/parisc/kernel/unaligned.c for reference
1280-
12811287
config KALLSYMS
12821288
bool "Load all symbols for debugging/ksymoops" if EXPERT
12831289
default y
@@ -1303,9 +1309,6 @@ config KALLSYMS_ALL
13031309

13041310
Say N unless you really need all symbols.
13051311

1306-
config HOTPLUG
1307-
def_bool y
1308-
13091312
config PRINTK
13101313
default y
13111314
bool "Enable support for printk" if EXPERT
@@ -1344,9 +1347,6 @@ config PCSPKR_PLATFORM
13441347
This option allows to disable the internal PC-Speaker
13451348
support, saving some memory.
13461349

1347-
config HAVE_PCSPKR_PLATFORM
1348-
bool
1349-
13501350
config BASE_FULL
13511351
default y
13521352
bool "Enable full-sized data structures for core" if EXPERT
@@ -1418,8 +1418,17 @@ config AIO
14181418
default y
14191419
help
14201420
This option enables POSIX asynchronous I/O which may by used
1421-
by some high performance threaded applications. Disabling
1422-
this option saves about 7k.
1421+
by some high performance threaded applications. Disabling
1422+
this option saves about 7k.
1423+
1424+
config PCI_QUIRKS
1425+
default y
1426+
bool "Enable PCI quirk workarounds" if EXPERT
1427+
depends on PCI
1428+
help
1429+
This enables workarounds for various PCI chipset
1430+
bugs/quirks. Disable this only if your target machine is
1431+
unaffected by PCI quirks.
14231432

14241433
config EMBEDDED
14251434
bool "Embedded system"
@@ -1494,15 +1503,6 @@ config VM_EVENT_COUNTERS
14941503
on EXPERT systems. /proc/vmstat will only show page counts
14951504
if VM event counters are disabled.
14961505

1497-
config PCI_QUIRKS
1498-
default y
1499-
bool "Enable PCI quirk workarounds" if EXPERT
1500-
depends on PCI
1501-
help
1502-
This enables workarounds for various PCI chipset
1503-
bugs/quirks. Disable this only if your target machine is
1504-
unaffected by PCI quirks.
1505-
15061506
config SLUB_DEBUG
15071507
default y
15081508
bool "Enable SLUB debugging support" if EXPERT

0 commit comments

Comments
 (0)