include architecture Kconfig files from top-level Kconfig
Subsystems (25)
Hi Masahiro,
what do you think about the series below, which moves the includes of all the architecture independ Kconfig files to the top-level Kconfig instead of duplicating the includes in all architectures?
Note that this only handles the low-hanging fruite, there are a lot of other bits that should probably be cleaned up to be common, but those will be not entirely trivial.
PATCH 1/5 kconfig: include common Kconfig files from top-level Kconfig
Instead of duplicating the source statements in every architecture just do it once in the toplevel Kconfig file.
--- Kconfig | 22 ++++++++++++++++++++++ arch/alpha/Kconfig | 20 -------------------- arch/arc/Kconfig | 16 ---------------- arch/arm/Kconfig | 25 ------------------------- arch/arm64/Kconfig | 23 ----------------------- arch/c6x/Kconfig | 24 ------------------------ arch/h8300/Kconfig | 24 ------------------------ arch/hexagon/Kconfig | 16 ---------------- arch/ia64/Kconfig | 20 -------------------- arch/m68k/Kconfig | 24 ------------------------ arch/microblaze/Kconfig | 24 ------------------------ arch/mips/Kconfig | 24 ------------------------ arch/nds32/Kconfig | 16 ---------------- arch/nios2/Kconfig | 24 ------------------------ arch/openrisc/Kconfig | 23 ----------------------- arch/parisc/Kconfig | 24 ------------------------ arch/powerpc/Kconfig | 19 ------------------- arch/riscv/Kconfig | 24 ------------------------ arch/s390/Kconfig | 24 ------------------------ arch/sh/Kconfig | 24 ------------------------ arch/sparc/Kconfig | 24 ------------------------ arch/unicore32/Kconfig | 24 ------------------------ arch/x86/Kconfig | 22 +--------------------- arch/xtensa/Kconfig | 25 ------------------------- 24 files changed, 23 insertions(+), 512 deletions(-)
Kconfig +22 -0
@@ -10,3 +10,25 @@ comment "Compiler: $(CC_VERSION_TEXT)" source "scripts/Kconfig.include" source "arch/$(SRCARCH)/Kconfig" + +source "init/Kconfig" + +source "kernel/Kconfig.freezer" + +menu "Executable file formats" +source "fs/Kconfig.binfmt" +endmenu + +source "mm/Kconfig" + +source "net/Kconfig" + +source "drivers/Kconfig" + +source "fs/Kconfig" + +source "security/Kconfig" + +source "crypto/Kconfig" + +source "lib/Kconfig"
arch/alpha/Kconfig +0 -20
@@ -74,9 +74,6 @@ config PGTABLE_LEVELS int default 3 -source "init/Kconfig" -source "kernel/Kconfig.freezer" - config AUDIT_ARCH bool
@@ -573,8 +570,6 @@ config ARCH_DISCONTIGMEM_ENABLE or have huge holes in the physical address space for other reasons. See <file:Documentation/vm/numa.rst> for more. -source "mm/Kconfig" - config NUMA bool "NUMA Support (EXPERIMENTAL)" depends on DISCONTIGMEM && BROKEN
@@ -713,16 +708,8 @@ config SRM_ENV This driver is also available as a module and will be called srm_env then. -source "fs/Kconfig.binfmt" - endmenu -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - source "arch/alpha/Kconfig.debug" # DUMMY_CONSOLE may be defined in drivers/video/console/Kconfig
@@ -731,10 +718,3 @@ config DUMMY_CONSOLE bool depends on VGA_HOSE default y - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig" -
arch/arc/Kconfig +0 -16
@@ -94,9 +94,6 @@ config HAVE_ARCH_TRANSPARENT_HUGEPAGE def_bool y depends on ARC_MMU_V4 -source "init/Kconfig" -source "kernel/Kconfig.freezer" - menu "ARC Architecture Configuration" menu "ARC Platform/SoC/Board"
@@ -550,22 +547,13 @@ config ARC_BUILTIN_DTB_NAME source "kernel/Kconfig.preempt" -menu "Executable file formats" -source "fs/Kconfig.binfmt" -endmenu - endmenu # "ARC Architecture Configuration" -source "mm/Kconfig" - config FORCE_MAX_ZONEORDER int "Maximum zone order" default "12" if ARC_HUGEPAGE_16M default "11" -source "net/Kconfig" -source "drivers/Kconfig" - menu "Bus Support" config PCI
@@ -586,9 +574,5 @@ source "drivers/pci/Kconfig" endmenu -source "fs/Kconfig" source "arch/arc/Kconfig.debug" -source "security/Kconfig" -source "crypto/Kconfig" -source "lib/Kconfig" source "kernel/power/Kconfig"
arch/arm/Kconfig +0 -25
@@ -298,10 +298,6 @@ config PGTABLE_LEVELS default 3 if ARM_LPAE default 2 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - menu "System Type" config MMU
@@ -911,8 +907,6 @@ config PLAT_VERSATILE source "arch/arm/firmware/Kconfig" -source arch/arm/mm/Kconfig - config IWMMXT bool "Enable iWMMXt support" depends on CPU_XSCALE || CPU_XSC3 || CPU_MOHAWK || CPU_PJ4 || CPU_PJ4B
@@ -1721,8 +1715,6 @@ config ARM_MODULE_PLTS Disabling this is usually safe for small single-platform configurations. If unsure, say y. -source "mm/Kconfig" - config FORCE_MAX_ZONEORDER int "Maximum zone order" default "12" if SOC_AM33XX
@@ -2175,12 +2167,6 @@ config KERNEL_MODE_NEON endmenu -menu "Userspace binary formats" - -source "fs/Kconfig.binfmt" - -endmenu - menu "Power management options" source "kernel/power/Kconfig"
@@ -2201,23 +2187,12 @@ config ARCH_HIBERNATION_POSSIBLE endmenu -source "net/Kconfig" - -source "drivers/Kconfig" - source "drivers/firmware/Kconfig" -source "fs/Kconfig" - source "arch/arm/Kconfig.debug" -source "security/Kconfig" - -source "crypto/Kconfig" if CRYPTO source "arch/arm/crypto/Kconfig" endif -source "lib/Kconfig" - source "arch/arm/kvm/Kconfig"
arch/arm64/Kconfig +0 -23
@@ -267,10 +267,6 @@ config ARCH_PROC_KCORE_TEXT config MULTI_IRQ_HANDLER def_bool y -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - source "arch/arm64/Kconfig.platforms" menu "Bus support"
@@ -791,8 +787,6 @@ config ARCH_WANT_HUGE_PMD_SHARE config ARCH_HAS_CACHE_LINE_SIZE def_bool y -source "mm/Kconfig" - config SECCOMP bool "Enable seccomp to safely compute untrusted bytecode" ---help---
@@ -1273,10 +1267,6 @@ config DMI endmenu -menu "Userspace binary formats" - -source "fs/Kconfig.binfmt" - config COMPAT bool "Kernel support for 32-bit EL0" depends on ARM64_4K_PAGES || EXPERT
@@ -1300,8 +1290,6 @@ config SYSVIPC_COMPAT def_bool y depends on COMPAT && SYSVIPC -endmenu - menu "Power management options" source "kernel/power/Kconfig"
@@ -1327,25 +1315,14 @@ source "drivers/cpufreq/Kconfig" endmenu -source "net/Kconfig" - -source "drivers/Kconfig" - source "drivers/firmware/Kconfig" source "drivers/acpi/Kconfig" -source "fs/Kconfig" - source "arch/arm64/kvm/Kconfig" source "arch/arm64/Kconfig.debug" -source "security/Kconfig" - -source "crypto/Kconfig" if CRYPTO source "arch/arm64/crypto/Kconfig" endif - -source "lib/Kconfig"
arch/c6x/Kconfig +0 -24
@@ -53,12 +53,8 @@ config C6X_BIG_KERNEL If unsure, say N. -source "init/Kconfig" - # Use the generic interrupt handling code in kernel/irq/ -source "kernel/Kconfig.freezer" - config CMDLINE_BOOL bool "Default bootloader kernel arguments"
@@ -114,32 +110,12 @@ config KERNEL_RAM_BASE_ADDRESS default 0xe0000000 if SOC_TMS320C6472 default 0x80000000 -source "mm/Kconfig" - source "kernel/Kconfig.preempt" source "kernel/Kconfig.hz" endmenu -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - -endmenu - -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig" - menu "Kernel hacking" source "lib/Kconfig.debug"
arch/h8300/Kconfig +0 -24
@@ -48,40 +48,16 @@ config NR_CPUS int default 1 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - source "arch/h8300/Kconfig.cpu" menu "Kernel Features" source "kernel/Kconfig.preempt" -source "mm/Kconfig" - -endmenu - -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - endmenu -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - menu "Kernel hacking" source "lib/Kconfig.debug" endmenu - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/hexagon/Kconfig +0 -16
@@ -146,26 +146,10 @@ config PAGE_SIZE_256KB endchoice -source "mm/Kconfig" - source "kernel/Kconfig.hz" endmenu -source "init/Kconfig" -source "kernel/Kconfig.freezer" -source "drivers/Kconfig" -source "fs/Kconfig" - -menu "Executable File Formats" -source "fs/Kconfig.binfmt" -endmenu - -source "net/Kconfig" -source "security/Kconfig" -source "crypto/Kconfig" -source "lib/Kconfig" - menu "Kernel hacking" source "lib/Kconfig.debug" endmenu
arch/ia64/Kconfig +0 -20
@@ -4,10 +4,6 @@ config PGTABLE_LEVELS range 3 4 if !IA64_PAGE_SIZE_64KB default 3 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - menu "Processor type and features" config IA64
@@ -370,8 +366,6 @@ config FORCE_CPEI_RETARGET source "kernel/Kconfig.preempt" -source "mm/Kconfig" - config ARCH_SELECT_MEMORY_MODEL def_bool y
@@ -532,8 +526,6 @@ config CRASH_DUMP source "drivers/firmware/Kconfig" -source "fs/Kconfig.binfmt" - endmenu menu "Power management and ACPI options"
@@ -574,10 +566,6 @@ endmenu endif -source "net/Kconfig" - -source "drivers/Kconfig" - source "arch/ia64/hp/sim/Kconfig" config MSPEC
@@ -589,12 +577,4 @@ config MSPEC operations support (formerly known as fetchop), say Y here, otherwise say N. -source "fs/Kconfig" - source "arch/ia64/Kconfig.debug" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/m68k/Kconfig +0 -24
@@ -75,10 +75,6 @@ config PGTABLE_LEVELS default 2 if SUN3 || COLDFIRE default 3 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - config MMU bool "MMU-based Paged Memory Management Support" default y
@@ -137,14 +133,6 @@ if COLDFIRE source "kernel/Kconfig.preempt" endif -source "mm/Kconfig" - -endmenu - -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - endmenu if !MMU
@@ -158,18 +146,6 @@ config PM endmenu endif -source "net/Kconfig" - -source "drivers/Kconfig" - source "arch/m68k/Kconfig.devices" -source "fs/Kconfig" - source "arch/m68k/Kconfig.debug" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/microblaze/Kconfig +0 -24
@@ -85,10 +85,6 @@ config STACKTRACE_SUPPORT config LOCKDEP_SUPPORT def_bool y -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - source "arch/microblaze/Kconfig.platform" menu "Processor type and features"
@@ -268,14 +264,6 @@ config MICROBLAZE_64K_PAGES endchoice -source "mm/Kconfig" - -endmenu - -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - endmenu menu "Bus Options"
@@ -300,16 +288,4 @@ source "drivers/pci/Kconfig" endmenu -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - source "arch/microblaze/Kconfig.debug" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/mips/Kconfig +0 -24
@@ -2641,8 +2641,6 @@ config HW_PERF_EVENTS Enable hardware performance counter support for perf events. If disabled, perf events will use software events only. -source "mm/Kconfig" - config SMP bool "Multi-Processing support" depends on SYS_SUPPORTS_SMP
@@ -2994,10 +2992,6 @@ config PGTABLE_LEVELS default 3 if 64BIT && !PAGE_SIZE_64KB default 2 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)" config HW_HAS_EISA
@@ -3127,10 +3121,6 @@ source "drivers/rapidio/Kconfig" endmenu -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - config TRAD_SIGNALS bool
@@ -3176,8 +3166,6 @@ config BINFMT_ELF32 default y if MIPS32_O32 || MIPS32_N32 select ELFCORE -endmenu - menu "Power management options" config ARCH_HIBERNATION_POSSIBLE
@@ -3205,20 +3193,8 @@ source "drivers/cpuidle/Kconfig" endmenu -source "net/Kconfig" - -source "drivers/Kconfig" - source "drivers/firmware/Kconfig" -source "fs/Kconfig" - source "arch/mips/Kconfig.debug" -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig" - source "arch/mips/kvm/Kconfig"
arch/nds32/Kconfig +0 -16
@@ -71,8 +71,6 @@ config FIX_EARLYCON_MEM config PGTABLE_LEVELS default 2 -source "init/Kconfig" - menu "System Type" source "arch/nds32/Kconfig.cpu" config NR_CPUS
@@ -91,23 +89,9 @@ endmenu menu "Kernel Features" source "kernel/Kconfig.preempt" -source "kernel/Kconfig.freezer" -source "mm/Kconfig" source "kernel/Kconfig.hz" endmenu -menu "Executable file formats" -source "fs/Kconfig.binfmt" -endmenu - -source "net/Kconfig" -source "drivers/Kconfig" -source "fs/Kconfig" - menu "Kernel hacking" source "lib/Kconfig.debug" endmenu - -source "security/Kconfig" -source "crypto/Kconfig" -source "lib/Kconfig"
arch/nios2/Kconfig +0 -24
@@ -47,18 +47,12 @@ config RWSEM_GENERIC_SPINLOCK config TRACE_IRQFLAGS_SUPPORT def_bool n -source "init/Kconfig" - menu "Kernel features" source "kernel/Kconfig.preempt" -source "kernel/Kconfig.freezer" - source "kernel/Kconfig.hz" -source "mm/Kconfig" - config FORCE_MAX_ZONEORDER int "Maximum zone order" range 9 20
@@ -196,22 +190,4 @@ config NIOS2_IO_REGION_BASE endmenu -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - -endmenu - -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - source "arch/nios2/Kconfig.debug" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/openrisc/Kconfig +0 -23
@@ -72,10 +72,6 @@ config LOCKDEP_SUPPORT config MULTI_IRQ_HANDLER def_bool y -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - menu "Processor type and features" choice
@@ -148,7 +144,6 @@ config SMP source kernel/Kconfig.hz source kernel/Kconfig.preempt -source "mm/Kconfig" config OPENRISC_NO_SPR_SR_DSX bool "use SPR_SR_DSX software emulation" if OR1K_1200
@@ -207,24 +202,6 @@ endmenu endmenu -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - -endmenu - -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig" - menu "Kernel hacking" source "lib/Kconfig.debug"
arch/parisc/Kconfig +0 -24
@@ -129,10 +129,6 @@ config PGTABLE_LEVELS config SYS_SUPPORTS_HUGETLBFS def_bool y if PA20 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - menu "Processor type and features"
@@ -329,7 +325,6 @@ config NODES_SHIFT source "kernel/Kconfig.preempt" source "kernel/Kconfig.hz" -source "mm/Kconfig" config COMPAT def_bool y
@@ -354,19 +349,6 @@ endmenu source "drivers/parisc/Kconfig" - -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - -endmenu - -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - source "arch/parisc/Kconfig.debug" config SECCOMP
@@ -384,9 +366,3 @@ config SECCOMP defined by each seccomp mode. If unsure, say Y. Only embedded should say N here. - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/powerpc/Kconfig +0 -19
@@ -383,10 +383,6 @@ config PGTABLE_LEVELS default 3 if PPC_64K_PAGES && !PPC_BOOK3S_64 default 4 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - source "arch/powerpc/sysdev/Kconfig" source "arch/powerpc/platforms/Kconfig"
@@ -398,7 +394,6 @@ config HIGHMEM source kernel/Kconfig.hz source kernel/Kconfig.preempt -source "fs/Kconfig.binfmt" config HUGETLB_PAGE_SIZE_VARIABLE bool
@@ -641,8 +636,6 @@ config ILLEGAL_POINTER_VALUE default 0x5deadbeef0000000 if PPC64 default 0 -source "mm/Kconfig" - config ARCH_MEMORY_PROBE def_bool y depends on MEMORY_HOTPLUG
@@ -1201,20 +1194,8 @@ endif config ARCH_RANDOM def_bool n -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - -source "lib/Kconfig" - source "arch/powerpc/Kconfig.debug" -source "security/Kconfig" - -source "crypto/Kconfig" - config PPC_LIB_RHEAP bool
arch/riscv/Kconfig +0 -24
@@ -211,8 +211,6 @@ endmenu menu "Kernel type" -source "mm/Kconfig" - source "kernel/Kconfig.preempt" source "kernel/Kconfig.hz"
@@ -241,28 +239,12 @@ source "drivers/pci/Kconfig" endmenu -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - -endmenu - menu "Power management options" source kernel/power/Kconfig endmenu -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - menu "Kernel hacking" config CMDLINE_BOOL
@@ -307,9 +289,3 @@ source "lib/Kconfig.debug" config CMDLINE_BOOL bool endmenu - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/s390/Kconfig +0 -24
@@ -183,10 +183,6 @@ config PGTABLE_LEVELS int default 5 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - source "kernel/livepatch/Kconfig" menu "Processor type and features"
@@ -626,8 +622,6 @@ config FORCE_MAX_ZONEORDER int default "9" -source "mm/Kconfig" - config MAX_PHYSMEM_BITS int "Maximum size of supported physical memory in bits (42-53)" range 42 53
@@ -797,10 +791,6 @@ config CRASH_DUMP endmenu -menu "Executable file formats / Emulations" - -source "fs/Kconfig.binfmt" - config SECCOMP def_bool y prompt "Enable seccomp to safely compute untrusted bytecode"
@@ -818,8 +808,6 @@ config SECCOMP If unsure, say Y. -endmenu - menu "Power Management" config ARCH_HIBERNATION_POSSIBLE
@@ -829,30 +817,18 @@ source "kernel/power/Kconfig" endmenu -source "net/Kconfig" - config PCMCIA def_bool n config CCW def_bool y -source "drivers/Kconfig" - config HAVE_PNETID tristate default (SMC || CCWGROUP) -source "fs/Kconfig" - source "arch/s390/Kconfig.debug" -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig" - menu "Virtualization" config PFAULT
arch/sh/Kconfig +0 -24
@@ -168,10 +168,6 @@ config PGTABLE_LEVELS default 3 if X2TLB default 2 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - menu "System type" #
@@ -553,8 +549,6 @@ endchoice endif -source "arch/sh/mm/Kconfig" - source "arch/sh/Kconfig.cpu" source "arch/sh/boards/Kconfig"
@@ -882,12 +876,6 @@ source "drivers/pcmcia/Kconfig" endmenu -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - -endmenu - menu "Power management options (EXPERIMENTAL)" source "kernel/power/Kconfig"
@@ -896,16 +884,4 @@ source "drivers/cpuidle/Kconfig" endmenu -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - source "arch/sh/Kconfig.debug" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/sparc/Kconfig +0 -24
@@ -155,10 +155,6 @@ config PGTABLE_LEVELS config ARCH_SUPPORTS_UPROBES def_bool y if SPARC64 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - menu "Processor type and features" config SMP
@@ -331,8 +327,6 @@ config FORCE_MAX_ZONEORDER This config option is actually maximum order plus one. For example, a value of 13 means that the largest free memory block is 2^12 pages. -source "mm/Kconfig" - if SPARC64 source "kernel/power/Kconfig" endif
@@ -556,10 +550,6 @@ config SPARC64_PCI_MSI endmenu -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - config COMPAT bool depends on SPARC64
@@ -574,20 +564,6 @@ config SYSVIPC_COMPAT depends on COMPAT && SYSVIPC default y -endmenu - -source "net/Kconfig" - -source "drivers/Kconfig" - source "drivers/sbus/char/Kconfig" -source "fs/Kconfig" - source "arch/sparc/Kconfig.debug" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/unicore32/Kconfig +0 -24
@@ -63,10 +63,6 @@ config ARCH_MAY_HAVE_PC_FDC config ZONE_DMA def_bool y -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - menu "System Type" config MMU
@@ -143,8 +139,6 @@ source "kernel/Kconfig.preempt" source "kernel/Kconfig.hz" -source "mm/Kconfig" - config LEDS def_bool y depends on GPIOLIB
@@ -181,12 +175,6 @@ config CMDLINE_FORCE endmenu -menu "Userspace binary formats" - -source "fs/Kconfig.binfmt" - -endmenu - menu "Power management options" source "kernel/power/Kconfig"
@@ -201,8 +189,6 @@ config ARCH_HIBERNATION_POSSIBLE endmenu -source "net/Kconfig" - if ARCH_PUV3 config PUV3_GPIO
@@ -237,14 +223,4 @@ endif endif -source "drivers/Kconfig" - -source "fs/Kconfig" - source "arch/unicore32/Kconfig.debug" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig"
arch/x86/Kconfig +1 -21
@@ -345,8 +345,6 @@ config PGTABLE_LEVELS default 3 if X86_PAE default 2 -source "init/Kconfig" - config CC_HAS_SANE_STACKPROTECTOR bool default $(success,$(srctree)/scripts/gcc-x86_64-has-stack-protector.sh $(CC)) if 64BIT
@@ -355,8 +353,6 @@ config CC_HAS_SANE_STACKPROTECTOR We have to make sure stack protector is unconditionally disabled if the compiler produces broken code. -source "kernel/Kconfig.freezer" - menu "Processor type and features" config ZONE_DMA
@@ -1638,8 +1634,6 @@ config ILLEGAL_POINTER_VALUE default 0 if X86_32 default 0xdead000000000000 if X86_64 -source "mm/Kconfig" - config X86_PMEM_LEGACY_DEVICE bool
@@ -2865,9 +2859,7 @@ config X86_SYSFB endmenu -menu "Executable file formats / Emulations" - -source "fs/Kconfig.binfmt" +menu "Binary Emulations" config IA32_EMULATION bool "IA32 Emulation"
@@ -2937,20 +2929,8 @@ config X86_DMA_REMAP config HAVE_GENERIC_GUP def_bool y -source "net/Kconfig" - -source "drivers/Kconfig" - source "drivers/firmware/Kconfig" -source "fs/Kconfig" - source "arch/x86/Kconfig.debug" -source "security/Kconfig" - -source "crypto/Kconfig" - source "arch/x86/kvm/Kconfig" - -source "lib/Kconfig"
arch/xtensa/Kconfig +0 -25
@@ -60,9 +60,6 @@ config HZ int default 100 -source "init/Kconfig" -source "kernel/Kconfig.freezer" - config LOCKDEP_SUPPORT def_bool y
@@ -491,8 +488,6 @@ config SIMDISK1_FILENAME Another simulated disk in a host file for a buildroot-independent storage. -source "mm/Kconfig" - config FORCE_MAX_ZONEORDER int "Maximum zone order" default "11"
@@ -567,30 +562,10 @@ config XTFPGA_LCD_8BIT_ACCESS endmenu -menu "Executable file formats" - -source "fs/Kconfig.binfmt" - -endmenu - menu "Power management options" source "kernel/power/Kconfig" endmenu -source "net/Kconfig" - -source "drivers/Kconfig" - -source "fs/Kconfig" - source "arch/xtensa/Kconfig.debug" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig" - -
Signature · 1 line
2.18.0
PATCH 2/5 Kconfig: consolidate the "Kernel hacking menu"
In reply to Christoph HellwigMove 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.
--- Kconfig | 2 ++ arch/alpha/Kconfig | 2 -- arch/alpha/Kconfig.debug | 5 ---- arch/arc/Kconfig | 1 - arch/arc/Kconfig.debug | 5 ---- arch/arm/Kconfig | 2 -- arch/arm/Kconfig.debug | 5 ---- arch/arm64/Kconfig | 2 -- arch/arm64/Kconfig.debug | 5 ---- arch/c6x/Kconfig | 15 ------------ arch/c6x/Kconfig.debug | 11 +++++++++ arch/h8300/Kconfig | 6 ----- arch/h8300/Kconfig.debug | 1 + arch/hexagon/Kconfig | 4 ---- arch/hexagon/Kconfig.debug | 1 + arch/ia64/Kconfig | 2 -- arch/ia64/Kconfig.debug | 5 ---- arch/m68k/Kconfig | 2 -- arch/m68k/Kconfig.debug | 5 ---- arch/microblaze/Kconfig | 2 -- arch/microblaze/Kconfig.debug | 6 ----- arch/mips/Kconfig | 2 -- arch/mips/Kconfig.debug | 5 ---- arch/nds32/Kconfig | 4 ---- arch/nds32/Kconfig.debug | 1 + arch/nios2/Kconfig | 2 -- arch/nios2/Kconfig.debug | 5 ---- arch/openrisc/Kconfig | 6 ----- arch/openrisc/Kconfig.debug | 1 + arch/parisc/Kconfig | 2 -- arch/parisc/Kconfig.debug | 5 ---- arch/powerpc/Kconfig | 2 -- arch/powerpc/Kconfig.debug | 5 ---- arch/riscv/Kconfig | 45 ----------------------------------- arch/riscv/Kconfig.debug | 37 ++++++++++++++++++++++++++++ arch/s390/Kconfig | 2 -- arch/s390/Kconfig.debug | 5 ---- arch/sh/Kconfig | 2 -- arch/sh/Kconfig.debug | 5 ---- arch/sparc/Kconfig | 2 -- arch/sparc/Kconfig.debug | 5 ---- arch/um/Kconfig.debug | 5 ---- arch/um/Kconfig.rest | 18 -------------- arch/unicore32/Kconfig | 2 -- arch/unicore32/Kconfig.debug | 5 ---- arch/x86/Kconfig | 2 -- arch/x86/Kconfig.debug | 5 ---- arch/xtensa/Kconfig | 2 -- arch/xtensa/Kconfig.debug | 5 ---- lib/Kconfig.debug | 6 +++++ 50 files changed, 60 insertions(+), 222 deletions(-) create mode 100644 arch/c6x/Kconfig.debug create mode 100644 arch/h8300/Kconfig.debug create mode 100644 arch/hexagon/Kconfig.debug create mode 100644 arch/nds32/Kconfig.debug create mode 100644 arch/openrisc/Kconfig.debug create mode 100644 arch/riscv/Kconfig.debug
Kconfig +2 -0
@@ -32,3 +32,5 @@ source "security/Kconfig" source "crypto/Kconfig" source "lib/Kconfig" + +source "lib/Kconfig.debug"
arch/alpha/Kconfig +0 -2
@@ -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
arch/alpha/Kconfig.debug +0 -5
@@ -1,7 +1,4 @@ # 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
arch/arc/Kconfig +0 -1
@@ -574,5 +574,4 @@ source "drivers/pci/Kconfig" endmenu -source "arch/arc/Kconfig.debug" source "kernel/power/Kconfig"
arch/arc/Kconfig.debug +0 -5
@@ -1,7 +1,4 @@ # 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
arch/arm/Kconfig +0 -2
@@ -2189,8 +2189,6 @@ endmenu source "drivers/firmware/Kconfig" -source "arch/arm/Kconfig.debug" - if CRYPTO source "arch/arm/crypto/Kconfig" endif
arch/arm/Kconfig.debug +0 -5
@@ -1,7 +1,4 @@ # 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
arch/arm64/Kconfig +0 -2
@@ -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
arch/arm64/Kconfig.debug +0 -5
@@ -1,6 +1,3 @@ -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
arch/c6x/Kconfig +0 -15
@@ -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
arch/c6x/Kconfig.debug new file +11 -0
@@ -0,0 +1,11 @@ +# 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. +
arch/h8300/Kconfig +0 -6
@@ -55,9 +55,3 @@ menu "Kernel Features" source "kernel/Kconfig.preempt" endmenu - -menu "Kernel hacking" - -source "lib/Kconfig.debug" - -endmenu
arch/h8300/Kconfig.debug new file +1 -0
@@ -0,0 +1 @@ +# dummy file, do not delete
arch/hexagon/Kconfig +0 -4
@@ -149,7 +149,3 @@ endchoice source "kernel/Kconfig.hz" endmenu - -menu "Kernel hacking" -source "lib/Kconfig.debug" -endmenu
arch/hexagon/Kconfig.debug new file +1 -0
@@ -0,0 +1 @@ +# dummy file, do not delete
arch/ia64/Kconfig +0 -2
@@ -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"
arch/ia64/Kconfig.debug +0 -5
@@ -1,7 +1,4 @@ # 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
arch/m68k/Kconfig +0 -2
@@ -147,5 +147,3 @@ endmenu endif source "arch/m68k/Kconfig.devices" - -source "arch/m68k/Kconfig.debug"
arch/m68k/Kconfig.debug +0 -5
@@ -1,7 +1,4 @@ # 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
arch/microblaze/Kconfig +0 -2
@@ -287,5 +287,3 @@ config PCI_XILINX source "drivers/pci/Kconfig" endmenu - -source "arch/microblaze/Kconfig.debug"
arch/microblaze/Kconfig.debug +0 -6
@@ -1,11 +1,5 @@ # For a description of the syntax of this configuration file, # see Documentation/kbuild/kconfig-language.txt. -menu "Kernel hacking" - config TRACE_IRQFLAGS_SUPPORT def_bool y - -source "lib/Kconfig.debug" - -endmenu
arch/mips/Kconfig +0 -2
@@ -3195,6 +3195,4 @@ endmenu source "drivers/firmware/Kconfig" -source "arch/mips/Kconfig.debug" - source "arch/mips/kvm/Kconfig"
arch/mips/Kconfig.debug +0 -5
@@ -1,12 +1,9 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" config TRACE_IRQFLAGS_SUPPORT bool default y -source "lib/Kconfig.debug" - config EARLY_PRINTK bool "Early printk" if EXPERT depends on SYS_HAS_EARLY_PRINTK
@@ -155,5 +152,3 @@ config MIPS_CPS_NS16550_SHIFT adjacent ns16550 registers in the system. endif # MIPS_CPS_NS16550_BOOL - -endmenu
arch/nds32/Kconfig +0 -4
@@ -91,7 +91,3 @@ menu "Kernel Features" source "kernel/Kconfig.preempt" source "kernel/Kconfig.hz" endmenu - -menu "Kernel hacking" -source "lib/Kconfig.debug" -endmenu
arch/nds32/Kconfig.debug new file +1 -0
@@ -0,0 +1 @@ +# dummy file, do not delete
arch/nios2/Kconfig +0 -2
@@ -189,5 +189,3 @@ config NIOS2_IO_REGION_BASE default "0xe0000000" endmenu - -source "arch/nios2/Kconfig.debug"
arch/nios2/Kconfig.debug +0 -5
@@ -1,11 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" config TRACE_IRQFLAGS_SUPPORT def_bool y -source "lib/Kconfig.debug" - config DEBUG_STACK_USAGE bool "Enable stack utilization instrumentation" depends on DEBUG_KERNEL
@@ -24,5 +21,3 @@ config EARLY_PRINTK This is useful for kernel debugging when your machine crashes very early before the console code is initialized. You should normally say N here, unless you want to debug such a crash. - -endmenu
arch/openrisc/Kconfig +0 -6
@@ -201,9 +201,3 @@ config OPENRISC_ESR_EXCEPTION_BUG_CHECK endmenu endmenu - -menu "Kernel hacking" - -source "lib/Kconfig.debug" - -endmenu
arch/openrisc/Kconfig.debug new file +1 -0
@@ -0,0 +1 @@ +# dummy file, do not delete
arch/parisc/Kconfig +0 -2
@@ -349,8 +349,6 @@ endmenu source "drivers/parisc/Kconfig" -source "arch/parisc/Kconfig.debug" - config SECCOMP def_bool y prompt "Enable seccomp to safely compute untrusted bytecode"
arch/parisc/Kconfig.debug +0 -5
@@ -1,9 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" - -source "lib/Kconfig.debug" config TRACE_IRQFLAGS_SUPPORT def_bool y - -endmenu
arch/powerpc/Kconfig +0 -2
@@ -1194,8 +1194,6 @@ endif config ARCH_RANDOM def_bool n -source "arch/powerpc/Kconfig.debug" - config PPC_LIB_RHEAP bool
arch/powerpc/Kconfig.debug +0 -5
@@ -1,7 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" - -source "lib/Kconfig.debug" config PPC_DISABLE_WERROR bool "Don't build arch/powerpc code with -Werror"
@@ -379,5 +376,3 @@ config PPC_FAST_ENDIAN_SWITCH depends on DEBUG_KERNEL && PPC_BOOK3S_64 help If you're unsure what this is, say N. - -endmenu
arch/riscv/Kconfig +0 -45
48 lines not on this page · raw message
arch/riscv/Kconfig.debug new file +37 -0
@@ -0,0 +1,37 @@ + +config CMDLINE_BOOL + bool "Built-in kernel command line" + help + For most platforms, it is firmware or second stage bootloader + that by default specifies the kernel command line options. + However, it might be necessary or advantageous to either override + the default kernel command line or add a few extra options to it. + For such cases, this option allows hardcoding command line options + directly into the kernel. + + For that, choose 'Y' here and fill in the extra boot parameters + in CONFIG_CMDLINE. + + The built-in options will be concatenated to the default command + line if CMDLINE_FORCE is set to 'N'. Otherwise, the default + command line will be ignored and replaced by the built-in string. + +config CMDLINE + string "Built-in kernel command string" + depends on CMDLINE_BOOL + default "" + help + Supply command-line options at build time by entering them here. + +config CMDLINE_FORCE + bool "Built-in command line overrides bootloader arguments" + depends on CMDLINE_BOOL + help + Set this option to 'Y' to have the kernel ignore the bootloader + or firmware command line. Instead, the built-in command line + will be used exclusively. + + If you don't know what to do here, say N. + +config EARLY_PRINTK + def_bool y
arch/s390/Kconfig +0 -2
@@ -827,8 +827,6 @@ config HAVE_PNETID tristate default (SMC || CCWGROUP) -source "arch/s390/Kconfig.debug" - menu "Virtualization" config PFAULT
arch/s390/Kconfig.debug +0 -5
@@ -1,11 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" config TRACE_IRQFLAGS_SUPPORT def_bool y -source "lib/Kconfig.debug" - config S390_PTDUMP bool "Export kernel pagetable layout to userspace via debugfs" depends on DEBUG_KERNEL
@@ -20,5 +17,3 @@ config S390_PTDUMP config EARLY_PRINTK def_bool y - -endmenu
arch/sh/Kconfig +0 -2
@@ -883,5 +883,3 @@ source "kernel/power/Kconfig" source "drivers/cpuidle/Kconfig" endmenu - -source "arch/sh/Kconfig.debug"
arch/sh/Kconfig.debug +0 -5
@@ -1,11 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" config TRACE_IRQFLAGS_SUPPORT def_bool y -source "lib/Kconfig.debug" - config SH_STANDARD_BIOS bool "Use LinuxSH standard BIOS" depends on SUPERH32
@@ -88,5 +85,3 @@ config MCOUNT def_bool y depends on SUPERH32 depends on STACK_DEBUG || FUNCTION_TRACER - -endmenu
arch/sparc/Kconfig +0 -2
@@ -565,5 +565,3 @@ config SYSVIPC_COMPAT default y source "drivers/sbus/char/Kconfig" - -source "arch/sparc/Kconfig.debug"
arch/sparc/Kconfig.debug +0 -5
@@ -1,12 +1,9 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" config TRACE_IRQFLAGS_SUPPORT bool default y -source "lib/Kconfig.debug" - config DEBUG_DCFLUSH bool "D-cache flush debugging" depends on SPARC64 && DEBUG_KERNEL
@@ -21,5 +18,3 @@ config FRAME_POINTER bool depends on MCOUNT default y - -endmenu
arch/um/Kconfig.debug +0 -5
@@ -1,7 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" - -source "lib/Kconfig.debug" config GPROF bool "Enable gprof support"
@@ -37,5 +34,3 @@ config EARLY_PRINTK This is useful for kernel debugging when your machine crashes very early before the console code is initialized. - -endmenu
arch/um/Kconfig.rest +0 -18
@@ -1,22 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -source "init/Kconfig" - -source "kernel/Kconfig.freezer" - source "arch/um/Kconfig.char" -source "drivers/Kconfig" - -source "net/Kconfig" - source "arch/um/Kconfig.net" - -source "fs/Kconfig" - -source "security/Kconfig" - -source "crypto/Kconfig" - -source "lib/Kconfig" - -source "arch/um/Kconfig.debug"
arch/unicore32/Kconfig +0 -2
@@ -222,5 +222,3 @@ endmenu endif endif - -source "arch/unicore32/Kconfig.debug"
arch/unicore32/Kconfig.debug +0 -5
@@ -1,7 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" - -source "lib/Kconfig.debug" config EARLY_PRINTK def_bool DEBUG_OCD
@@ -30,5 +27,3 @@ config DEBUG_OCD help Say Y here if you want the debug print routines to direct their output to the UniCore On-Chip-Debugger channel using CP #1. - -endmenu
arch/x86/Kconfig +0 -2
@@ -2931,6 +2931,4 @@ config HAVE_GENERIC_GUP source "drivers/firmware/Kconfig" -source "arch/x86/Kconfig.debug" - source "arch/x86/kvm/Kconfig"
arch/x86/Kconfig.debug +0 -5
@@ -1,11 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" config TRACE_IRQFLAGS_SUPPORT def_bool y -source "lib/Kconfig.debug" - config EARLY_PRINTK_USB bool
@@ -410,5 +407,3 @@ endchoice config FRAME_POINTER depends on !UNWINDER_ORC && !UNWINDER_GUESS bool - -endmenu
arch/xtensa/Kconfig +0 -2
@@ -567,5 +567,3 @@ menu "Power management options" source "kernel/power/Kconfig" endmenu - -source "arch/xtensa/Kconfig.debug"
arch/xtensa/Kconfig.debug +0 -5
@@ -1,7 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -menu "Kernel hacking" - -source "lib/Kconfig.debug" config DEBUG_TLB_SANITY bool "Debug TLB sanity"
@@ -34,5 +31,3 @@ config S32C1I_SELFTEST It is easy to make wrong hardware configuration, this test should catch it early. Say 'N' on stable hardware. - -endmenu
lib/Kconfig.debug +6 -0
@@ -1,3 +1,5 @@ +menu "Kernel hacking" + menu "printk and dmesg options" config PRINTK_TIME
@@ -2034,3 +2036,7 @@ config IO_STRICT_DEVMEM if the driver using a given range cannot be disabled. If in doubt, say Y. + +source "arch/$(SRCARCH)/Kconfig.debug" + +endmenu # Kernel hacking
Signature · 1 line
2.18.0
PATCH 3/5 kconfig: include kernel/Kconfig.preempt from top-level Kconfig
In reply to Christoph HellwigAlmost all architectures include it. Add a ARCH_NO_PREEMPT symbol to disable preempt support for alpha, hexagon and non-coldfire m68k.
--- arch/Kconfig | 3 +++ arch/alpha/Kconfig | 1 + arch/arc/Kconfig | 2 -- arch/arm/Kconfig | 2 -- arch/arm64/Kconfig | 1 - arch/c6x/Kconfig | 2 -- arch/h8300/Kconfig | 6 ------ arch/hexagon/Kconfig | 1 + arch/ia64/Kconfig | 2 -- arch/m68k/Kconfig | 5 +---- arch/microblaze/Kconfig | 2 -- arch/mips/Kconfig | 2 -- arch/nds32/Kconfig | 1 - arch/nios2/Kconfig | 2 -- arch/openrisc/Kconfig | 1 - arch/parisc/Kconfig | 1 - arch/powerpc/Kconfig | 1 - arch/riscv/Kconfig | 2 -- arch/s390/Kconfig | 2 -- arch/sh/Kconfig | 2 -- arch/sparc/Kconfig | 2 -- arch/unicore32/Kconfig | 2 -- arch/x86/Kconfig | 2 -- arch/xtensa/Kconfig | 2 -- kernel/Kconfig.preempt | 4 +++- 25 files changed, 9 insertions(+), 44 deletions(-)
arch/Kconfig +3 -0
@@ -875,6 +875,9 @@ config COMPAT_32BIT_TIME config ARCH_NO_COHERENT_DMA_MMAP bool +config ARCH_NO_PREEMPT + bool + config CPU_NO_EFFICIENT_FFS def_bool n
arch/alpha/Kconfig +1 -0
@@ -4,6 +4,7 @@ config ALPHA default y select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO + select ARCH_NO_PREEMPT select ARCH_USE_CMPXCHG_LOCKREF select HAVE_AOUT select HAVE_IDE
arch/arc/Kconfig +0 -2
@@ -545,8 +545,6 @@ config ARC_BUILTIN_DTB_NAME Set the name of the DTB to embed in the vmlinux binary Leaving it blank selects the minimal "skeleton" dtb -source "kernel/Kconfig.preempt" - endmenu # "ARC Architecture Configuration" config FORCE_MAX_ZONEORDER
arch/arm/Kconfig +0 -2
@@ -1479,8 +1479,6 @@ config ARCH_NR_GPIO If unsure, leave the default value. -source kernel/Kconfig.preempt - config HZ_FIXED int default 200 if ARCH_EBSA110
arch/arm64/Kconfig +0 -1
@@ -752,7 +752,6 @@ config HOLES_IN_ZONE def_bool y depends on NUMA -source kernel/Kconfig.preempt source kernel/Kconfig.hz config ARCH_SUPPORTS_DEBUG_PAGEALLOC
arch/c6x/Kconfig +0 -2
@@ -110,8 +110,6 @@ config KERNEL_RAM_BASE_ADDRESS default 0xe0000000 if SOC_TMS320C6472 default 0x80000000 -source "kernel/Kconfig.preempt" - source "kernel/Kconfig.hz" endmenu
arch/h8300/Kconfig +0 -6
@@ -49,9 +49,3 @@ config NR_CPUS default 1 source "arch/h8300/Kconfig.cpu" - -menu "Kernel Features" - -source "kernel/Kconfig.preempt" - -endmenu
arch/hexagon/Kconfig +1 -0
@@ -4,6 +4,7 @@ comment "Linux Kernel Configuration for Hexagon" config HEXAGON def_bool y + select ARCH_NO_PREEMPT select HAVE_OPROFILE # Other pending projects/to-do items. # select HAVE_REGS_AND_STACK_ACCESS_API
arch/ia64/Kconfig +0 -2
@@ -364,8 +364,6 @@ config FORCE_CPEI_RETARGET This option it useful to enable this feature on older BIOS's as well. You can also enable this by using boot command line option force_cpei=1. -source "kernel/Kconfig.preempt" - config ARCH_SELECT_MEMORY_MODEL def_bool y
arch/m68k/Kconfig +1 -4
@@ -4,6 +4,7 @@ config M68K default y select ARCH_MIGHT_HAVE_PC_PARPORT if ISA select ARCH_NO_COHERENT_DMA_MMAP if !MMU + select ARCH_NO_PREEMPT if !COLDFIRE select HAVE_IDE select HAVE_AOUT if MMU select HAVE_DEBUG_BUGVERBOSE
@@ -129,10 +130,6 @@ endmenu menu "Kernel Features" -if COLDFIRE -source "kernel/Kconfig.preempt" -endif - endmenu if !MMU
arch/microblaze/Kconfig +0 -2
@@ -89,8 +89,6 @@ source "arch/microblaze/Kconfig.platform" menu "Processor type and features" -source "kernel/Kconfig.preempt" - source "kernel/Kconfig.hz" config MMU
arch/mips/Kconfig +0 -2
@@ -2818,8 +2818,6 @@ config HZ config SCHED_HRTICK def_bool HIGH_RES_TIMERS -source "kernel/Kconfig.preempt" - config KEXEC bool "Kexec system call" select KEXEC_CORE
arch/nds32/Kconfig +0 -1
@@ -88,6 +88,5 @@ config NDS32_BUILTIN_DTB endmenu menu "Kernel Features" -source "kernel/Kconfig.preempt" source "kernel/Kconfig.hz" endmenu
arch/nios2/Kconfig +0 -2
@@ -49,8 +49,6 @@ config TRACE_IRQFLAGS_SUPPORT menu "Kernel features" -source "kernel/Kconfig.preempt" - source "kernel/Kconfig.hz" config FORCE_MAX_ZONEORDER
arch/openrisc/Kconfig +0 -1
@@ -143,7 +143,6 @@ config SMP If you don't know what to do here, say N. source kernel/Kconfig.hz -source kernel/Kconfig.preempt config OPENRISC_NO_SPR_SR_DSX bool "use SPR_SR_DSX software emulation" if OR1K_1200
arch/parisc/Kconfig +0 -1
@@ -323,7 +323,6 @@ config NODES_SHIFT default "3" depends on NEED_MULTIPLE_NODES -source "kernel/Kconfig.preempt" source "kernel/Kconfig.hz" config COMPAT
arch/powerpc/Kconfig +0 -1
@@ -393,7 +393,6 @@ config HIGHMEM depends on PPC32 source kernel/Kconfig.hz -source kernel/Kconfig.preempt config HUGETLB_PAGE_SIZE_VARIABLE bool
arch/riscv/Kconfig +0 -2
@@ -211,8 +211,6 @@ endmenu menu "Kernel type" -source "kernel/Kconfig.preempt" - source "kernel/Kconfig.hz" endmenu
arch/s390/Kconfig +0 -2
@@ -510,8 +510,6 @@ config SCHED_TOPOLOGY making when dealing with machines that have multi-threading, multiple cores or multiple books. -source kernel/Kconfig.preempt - source kernel/Kconfig.hz config KEXEC
arch/sh/Kconfig +0 -2
@@ -707,8 +707,6 @@ config HOTPLUG_CPU Say Y here to experiment with turning CPUs off and on. CPUs can be controlled through /sys/devices/system/cpu. -source "kernel/Kconfig.preempt" - config GUSA def_bool y depends on !SMP && SUPERH32
arch/sparc/Kconfig +0 -2
@@ -349,8 +349,6 @@ config SCHED_MC making when dealing with multi-core CPU chips at a cost of slightly increased overhead in some places. If unsure say N here. -source "kernel/Kconfig.preempt" - config CMDLINE_BOOL bool "Default bootloader kernel arguments" depends on SPARC64
arch/unicore32/Kconfig +0 -2
@@ -135,8 +135,6 @@ endmenu menu "Kernel Features" -source "kernel/Kconfig.preempt" - source "kernel/Kconfig.hz" config LEDS
arch/x86/Kconfig +0 -2
@@ -1039,8 +1039,6 @@ config SCHED_MC_PRIO If unsure say Y here. -source "kernel/Kconfig.preempt" - config UP_LATE_INIT def_bool y depends on !SMP && X86_LOCAL_APIC
arch/xtensa/Kconfig +0 -2
@@ -173,8 +173,6 @@ config XTENSA_UNALIGNED_USER Say Y here to enable unaligned memory access in user space. -source "kernel/Kconfig.preempt" - config HAVE_SMP bool "System Supports SMP (MX)" depends on XTENSA_VARIANT_CUSTOM
kernel/Kconfig.preempt +3 -1
@@ -18,6 +18,7 @@ config PREEMPT_NONE config PREEMPT_VOLUNTARY bool "Voluntary Kernel Preemption (Desktop)" + depends on !ARCH_NO_PREEMPT help This option reduces the latency of the kernel by adding more "explicit preemption points" to the kernel code. These new
@@ -35,6 +36,7 @@ config PREEMPT_VOLUNTARY config PREEMPT bool "Preemptible Kernel (Low-Latency Desktop)" + depends on !ARCH_NO_PREEMPT select PREEMPT_COUNT select UNINLINE_SPIN_UNLOCK if !ARCH_INLINE_SPIN_UNLOCK help
@@ -55,4 +57,4 @@ config PREEMPT endchoice config PREEMPT_COUNT - bool + bool
Signature · 1 line
2.18.0
PATCH 4/5 kconfig: add a Memory Management options" menu
In reply to Christoph HellwigThis moves all the options under a proper menu.
Based on a patch from Randy Dunlap.
--- mm/Kconfig | 5 +++++ 1 file changed, 5 insertions(+)
mm/Kconfig +5 -0
@@ -1,3 +1,6 @@ + +menu "Memory Management options" + config SELECT_MEMORY_MODEL def_bool y depends on ARCH_SELECT_MEMORY_MODEL
@@ -762,3 +765,5 @@ config GUP_BENCHMARK config ARCH_HAS_PTE_SPECIAL bool + +endmenu
Signature · 1 line
2.18.0
PATCH 5/5 kconfig: move the "Executable file formats" menu to fs/Kconfig.binfmt
In reply to Christoph HellwigNo need to have this in the top-level Kconfig.
--- Kconfig | 2 -- fs/Kconfig.binfmt | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-)
Kconfig +0 -2
@@ -15,9 +15,7 @@ source "init/Kconfig" source "kernel/Kconfig.freezer" -menu "Executable file formats" source "fs/Kconfig.binfmt" -endmenu source "mm/Kconfig"
fs/Kconfig.binfmt +5 -0
@@ -1,3 +1,6 @@ + +menu "Executable file formats" + config BINFMT_ELF bool "Kernel support for ELF binaries" depends on MMU
@@ -187,3 +190,5 @@ config COREDUMP This option enables support for performing core dumps. You almost certainly want to say Y here. Not necessary on systems that never need debugging or only ever run flawless code. + +endmenu
Signature · 1 line
2.18.0
Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig
In reply to Christoph HellwigQuoted 36 lines · Christoph Hellwig
Instead of duplicating the source statements in every architecture just do it once in the toplevel
Kconfigfile.Signed-off-by Christoph Hellwig <[email protected]>--- Kconfig | 22 ++++++++++++++++++++++ arch/alpha/Kconfig | 20 -------------------- arch/arc/Kconfig | 16 ---------------- arch/arm/Kconfig | 25 ------------------------- arch/arm64/Kconfig | 23 ----------------------- arch/c6x/Kconfig | 24 ------------------------ arch/h8300/Kconfig | 24 ------------------------ arch/hexagon/Kconfig | 16 ---------------- arch/ia64/Kconfig | 20 -------------------- arch/m68k/Kconfig | 24 ------------------------ arch/microblaze/Kconfig | 24 ------------------------ arch/mips/Kconfig | 24 ------------------------ arch/nds32/Kconfig | 16 ---------------- arch/nios2/Kconfig | 24 ------------------------ arch/openrisc/Kconfig | 23 ----------------------- arch/parisc/Kconfig | 24 ------------------------ arch/powerpc/Kconfig | 19 ------------------- arch/riscv/Kconfig | 24 ------------------------ arch/s390/Kconfig | 24 ------------------------ arch/sh/Kconfig | 24 ------------------------ arch/sparc/Kconfig | 24 ------------------------ arch/unicore32/Kconfig | 24 ------------------------ arch/x86/Kconfig | 22 +--------------------- arch/xtensa/Kconfig | 25 ------------------------- 24 files changed, 23 insertions(+), 512 deletions(-)Kconfig +0
-0
Kconfig comment "Compiler: $(CC_VERSION_TEXT)" · line 14
Quoted 5 lines
Kconfig +2
-0@@ -10,3 +10,25 @@ comment "Compiler: $(CC_VERSION_TEXT)" source "scripts/Kconfig.include" source "arch/$(SRCARCH)/Kconfig" + +source "init/Kconfig"
Hi Christoph,
Looks good overall. I'm still doing some testing on it.
I would prefer to have init/Kconfig before arch/$(SRCARCH)/Kconfig. Is there a reason that you chose the ordering above?
Any known dependencies?
Thanks.
Quoted 20 lines
Kconfig +20
-0+ +source "kernel/Kconfig.freezer" + +menu "Executable file formats" +source "fs/Kconfig.binfmt" +endmenu + +source "mm/Kconfig" + +source "net/Kconfig" + +source "drivers/Kconfig" + +source "fs/Kconfig" + +source "security/Kconfig" + +source "crypto/Kconfig" + +source "lib/Kconfig"
Signature · 1 line
~Randy
Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig
Quoted 45 lines · Randy Dunlap
Quoted 36 lines · Christoph Hellwig
Instead of duplicating the source statements in every architecture just do it once in the toplevel
Kconfigfile.Signed-off-by Christoph Hellwig <[email protected]>--- Kconfig | 22 ++++++++++++++++++++++ arch/alpha/Kconfig | 20 -------------------- arch/arc/Kconfig | 16 ---------------- arch/arm/Kconfig | 25 ------------------------- arch/arm64/Kconfig | 23 ----------------------- arch/c6x/Kconfig | 24 ------------------------ arch/h8300/Kconfig | 24 ------------------------ arch/hexagon/Kconfig | 16 ---------------- arch/ia64/Kconfig | 20 -------------------- arch/m68k/Kconfig | 24 ------------------------ arch/microblaze/Kconfig | 24 ------------------------ arch/mips/Kconfig | 24 ------------------------ arch/nds32/Kconfig | 16 ---------------- arch/nios2/Kconfig | 24 ------------------------ arch/openrisc/Kconfig | 23 ----------------------- arch/parisc/Kconfig | 24 ------------------------ arch/powerpc/Kconfig | 19 ------------------- arch/riscv/Kconfig | 24 ------------------------ arch/s390/Kconfig | 24 ------------------------ arch/sh/Kconfig | 24 ------------------------ arch/sparc/Kconfig | 24 ------------------------ arch/unicore32/Kconfig | 24 ------------------------ arch/x86/Kconfig | 22 +--------------------- arch/xtensa/Kconfig | 25 ------------------------- 24 files changed, 23 insertions(+), 512 deletions(-)Kconfig +0
-0Kconfig comment "Compiler: $(CC_VERSION_TEXT)" · line 14
Quoted 5 lines
Kconfig +2
-0@@ -10,3 +10,25 @@ comment "Compiler: $(CC_VERSION_TEXT)" source "scripts/Kconfig.include" source "arch/$(SRCARCH)/Kconfig" + +source "init/Kconfig"Hi Christoph,
Quoted 3 lines
Looks good overall. I'm still doing some testing on it.
I would prefer to have init/Kconfig before arch/$(SRCARCH)/Kconfig.
Ugh, that won't get this set correctly on x86_64:CONFIG_PGTABLE_LEVELS=2
Quoted 27 lines
Is there a reason that you chose the ordering above? Any known dependencies?
Thanks.
Quoted 20 lines
Kconfig +20
-0+ +source "kernel/Kconfig.freezer" + +menu "Executable file formats" +source "fs/Kconfig.binfmt" +endmenu + +source "mm/Kconfig" + +source "net/Kconfig" + +source "drivers/Kconfig" + +source "fs/Kconfig" + +source "security/Kconfig" + +source "crypto/Kconfig" + +source "lib/Kconfig"
Signature · 1 line
~Randy
Re: [PATCH 2/5] Kconfig: consolidate the "Kernel hacking menu"
In reply to Christoph HellwigKconfig source "security/Kconfig" · line 36
Quoted 10 lines · Christoph Hellwig
Kconfig +2
-0@@ -32,3 +32,5 @@ source "security/Kconfig" source "crypto/Kconfig" source "lib/Kconfig" + +source "lib/Kconfig.debug"
Ack having Kernel hacking menu at the end.
I've been wanting to do that as well.
thanks,
Signature · 1 line
~Randy
Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig
In reply to Christoph HellwigQuoted 51 lines · Christoph Hellwig
Instead of duplicating the source statements in every architecture just do it once in the toplevel
Kconfigfile.Signed-off-by Christoph Hellwig <[email protected]>--- Kconfig | 22 ++++++++++++++++++++++ arch/alpha/Kconfig | 20 -------------------- arch/arc/Kconfig | 16 ---------------- arch/arm/Kconfig | 25 ------------------------- arch/arm64/Kconfig | 23 ----------------------- arch/c6x/Kconfig | 24 ------------------------ arch/h8300/Kconfig | 24 ------------------------ arch/hexagon/Kconfig | 16 ---------------- arch/ia64/Kconfig | 20 -------------------- arch/m68k/Kconfig | 24 ------------------------ arch/microblaze/Kconfig | 24 ------------------------ arch/mips/Kconfig | 24 ------------------------ arch/nds32/Kconfig | 16 ---------------- arch/nios2/Kconfig | 24 ------------------------ arch/openrisc/Kconfig | 23 ----------------------- arch/parisc/Kconfig | 24 ------------------------ arch/powerpc/Kconfig | 19 ------------------- arch/riscv/Kconfig | 24 ------------------------ arch/s390/Kconfig | 24 ------------------------ arch/sh/Kconfig | 24 ------------------------ arch/sparc/Kconfig | 24 ------------------------ arch/unicore32/Kconfig | 24 ------------------------ arch/x86/Kconfig | 22 +--------------------- arch/xtensa/Kconfig | 25 ------------------------- 24 files changed, 23 insertions(+), 512 deletions(-)Kconfig +12
-0@@ -10,3 +10,25 @@ comment "Compiler: $(CC_VERSION_TEXT)" source "scripts/Kconfig.include" source "arch/$(SRCARCH)/Kconfig" + +source "init/Kconfig" + +source "kernel/Kconfig.freezer" + +menu "Executable file formats" +source "fs/Kconfig.binfmt" +endmenu + +source "mm/Kconfig" + +source "net/Kconfig"
Kconfig comment "Compiler: $(CC_VERSION_TEXT)" · line 34
Quoted 10 lines
Kconfig +10
-0+ +source "drivers/Kconfig" + +source "fs/Kconfig" + +source "security/Kconfig" + +source "crypto/Kconfig" + +source "lib/Kconfig"
FWIW, I prefer this modification, but it's not a deal breaker.
---
From: Randy Dunlap <[email protected]>
Present "General setup" before "Processor type and features". This is done by sourcing arch/$(SRCARCH)/Kconfig before arch/Kconfig inside init/Kconfig.
--- Kconfig | 2 -- init/Kconfig | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-)
Kconfig +0 -2
@@ -9,8 +9,6 @@ comment "Compiler: $(CC_VERSION_TEXT)" source "scripts/Kconfig.include" -source "arch/$(SRCARCH)/Kconfig" - source "init/Kconfig" source "kernel/Kconfig.freezer"
init/Kconfig +6 -0
@@ -1717,6 +1717,12 @@ config PROFILING config TRACEPOINTS bool +# Note: arch/$(SRCARCH)/Kconfig needs to be before arch/Kconfig +# so that each $ARCH can specify its values for CONFIG_PGTABLE_LEVELS +# before the default value is found in arch/Kconfig. + +source "arch/$(SRCARCH)/Kconfig" + source "arch/Kconfig" endmenu # General setup
Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig
Quoted 6 lines · Randy Dunlap
init/Kconfig +0
-0@@ -1717,6 +1717,12 @@ config PROFILING config TRACEPOINTS bool
init/Kconfig config PROFILING · line 1728
Quoted 10 lines
init/Kconfig +6
-0+# Note: arch/$(SRCARCH)/Kconfig needs to be before arch/Kconfig +# so that each $ARCH can specify its values for CONFIG_PGTABLE_LEVELS +# before the default value is found in arch/Kconfig. + +source "arch/$(SRCARCH)/Kconfig" + source "arch/Kconfig" endmenu # General setup
except that the endmenu should be moved up a few lines so that the Processor type and features menu is not part of the General setup menu.
v2 patch is below.
---
From: Randy Dunlap <[email protected]>
Present "General setup" before "Processor type and features". This is done by sourcing arch/$(SRCARCH)/Kconfig before arch/Kconfig inside init/Kconfig.
---
v2: move General setup's endmenu before the $ARCH Kconfigs.
Kconfig | 2 -- init/Kconfig | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-)
Kconfig +0 -2
@@ -9,8 +9,6 @@ comment "Compiler: $(CC_VERSION_TEXT)" source "scripts/Kconfig.include" -source "arch/$(SRCARCH)/Kconfig" - source "init/Kconfig" source "kernel/Kconfig.freezer"
init/Kconfig +8 -2
@@ -1717,10 +1717,16 @@ config PROFILING config TRACEPOINTS bool -source "arch/Kconfig" - endmenu # General setup +# Note: arch/$(SRCARCH)/Kconfig needs to be before arch/Kconfig +# so that each $ARCH can specify its values for CONFIG_PGTABLE_LEVELS +# before the default value is found in arch/Kconfig. + +source "arch/$(SRCARCH)/Kconfig" + +source "arch/Kconfig" + config RT_MUTEXES bool
Re: [PATCH 4/5] kconfig: add a Memory Management options" menu
In reply to Christoph HellwigQuoted 5 lines · Christoph Hellwig
This moves all the options under a proper menu.
Based on a patch from Randy Dunlap.
Signed-off-by Christoph Hellwig <[email protected]>
Quoted 22 lines
--- mm/Kconfig | 5 +++++ 1 file changed, 5 insertions(+)mm/Kconfig +5
-0@@ -1,3 +1,6 @@ + +menu "Memory Management options" + config SELECT_MEMORY_MODEL def_bool y depends on ARCH_SELECT_MEMORY_MODEL@@ -762,3 +765,5 @@ config GUP_BENCHMARK config ARCH_HAS_PTE_SPECIAL bool + +endmenu
Signature · 1 line
~Randy
Re: [PATCH 5/5] kconfig: move the "Executable file formats" menu to fs/Kconfig.binfmt
In reply to Christoph HellwigQuoted 3 lines · Christoph Hellwig
No need to have this in the top-level
Kconfig.Signed-off-by Christoph Hellwig <[email protected]>
Quoted 37 lines
--- Kconfig | 2 -- fs/Kconfig.binfmt | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-)Kconfig +0
-2@@ -15,9 +15,7 @@ source "init/Kconfig" source "kernel/Kconfig.freezer" -menu "Executable file formats" source "fs/Kconfig.binfmt" -endmenu source "mm/Kconfig"fs/Kconfig.binfmt +5
-0@@ -1,3 +1,6 @@ + +menu "Executable file formats" + config BINFMT_ELF bool "Kernel support for ELF binaries" depends on MMU@@ -187,3 +190,5 @@ config COREDUMP This option enables support for performing core dumps. You almost certainly want to say Y here. Not necessary on systems that never need debugging or only ever run flawless code. + +endmenu
Signature · 1 line
~Randy
PATCH 1/1 arch/Kconfig: use a menu to reduce clutter
In reply to Christoph HellwigFrom: Randy Dunlap <[email protected]>
Put everything in arch/Kconfig into a General options menu so that they don't clutter up the main/major/primary list of menu options.
--- arch/Kconfig | 4 ++++ 1 file changed, 4 insertions(+)
arch/Kconfig +4 -0
@@ -3,6 +3,8 @@ # General architecture dependent options # +menu "General architecture-dependent options" + config CRASH_CORE bool
@@ -1028,3 +1030,5 @@ config REFCOUNT_FULL security flaw exploits. source "kernel/gcov/Kconfig" + +endmenu
PATCH 1/1 Kconfig: menus: add PREEMPT options back
In reply to Christoph HellwigFrom: Randy Dunlap <[email protected]>
Looks like the PREEMPT symbols from kernel/Kconfig.preempt were lost, so add them back. Otherwise some of the RCU options are set differently than they should be.
--- init/Kconfig | 1 + 1 file changed, 1 insertion(+)
init/Kconfig +1 -0
@@ -332,6 +332,7 @@ config AUDIT_TREE source "kernel/irq/Kconfig" source "kernel/time/Kconfig" +source "kernel/Kconfig.preempt" menu "CPU/Task time and stats accounting"
Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig
In reply to Randy DunlapQuoted 5 lines · Randy Dunlap
Looks good overall. I'm still doing some testing on it.
I would prefer to have init/Kconfig before arch/$(SRCARCH)/Kconfig. Is there a reason that you chose the ordering above?
Any known dependencies?
I don't think there are and I'll give it a spin.
The series needs a resend due to arm and user mode linux issues the builtbot found anyway.
Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig
In reply to Randy DunlapQuoted 4 lines · Randy Dunlap
Quoted 1 line
I would prefer to have init/Kconfig before arch/$(SRCARCH)/Kconfig.
Ugh, that won't get this set correctly on
x86_64:CONFIG_PGTABLE_LEVELS=2
Did you try it? As far as I can tell modern kconfig isn't really order sensitive any more.
Re: [PATCH] arch/Kconfig: use a menu to reduce clutter
In reply to Randy DunlapThanks, folded into the original preempt patch.
Re: [PATCH] arch/Kconfig: use a menu to reduce clutter
Quoted 1 line · Christoph Hellwig
Thanks, folded into the original preempt patch.
Err, that was for the next patch. I'll just apply this as-is.
Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig
In reply to Christoph HellwigQuoted 9 lines · Christoph Hellwig
Quoted 4 lines · Randy Dunlap
Quoted 1 line
I would prefer to have init/Kconfig before arch/$(SRCARCH)/Kconfig.
Ugh, that won't get this set correctly on
x86_64:CONFIG_PGTABLE_LEVELS=2Did you try it? As far as I can tell modern kconfig isn't really order sensitive any more.
--
Yes, it was wrong. :(
Once the symbol has a default value, it won't be assigned a different default value (at least that's how it looks; I haven't read the kconfig source code).
Signature · 1 line
~Randy
Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig
2018-07-04 1:11 GMT+09:00 Randy Dunlap <[email protected]>:
Quoted 11 lines · Christoph Hellwig
Quoted 9 lines · Randy Dunlap
Quoted 4 lines
Quoted 1 line
I would prefer to have init/Kconfig before arch/$(SRCARCH)/Kconfig.
Ugh, that won't get this set correctly on
x86_64:CONFIG_PGTABLE_LEVELS=2Did you try it? As far as I can tell modern kconfig isn't really order sensitive any more.
--
Quoted 6 lines
Yes, it was wrong. :(
Once the symbol has a default value, it won't be assigned a different default value (at least that's how it looks; I haven't read the kconfig source code).
The order does matter.
The 'default' properties are accumulated
as they appear.
If arch/Kconfig were parsed before arch/x86/Kconfig, it would end up with this:
config PGTABLE_LEVELS
int
default 2 <- from arch/Kconfig
default 5 if X86_5LEVEL <- from arch/x86/Kconfig
default 4 if X86_64 <- from arch/x86/Kconfig
default 3 if X86_PAE <- from arch/x86/Kconfig
default 2 <- from arch/x86/Kconfig
So, PGTABLE_LEVELS would be always 2.
The last four lines are dead code.
The correct order is arch/x86/Kconfig, arch/Kconfig then we can get this:
config PGTABLE_LEVELS
int
default 5 if X86_5LEVEL <- from arch/x86/Kconfig
default 4 if X86_64 <- from arch/x86/Kconfig
default 3 if X86_PAE <- from arch/x86/Kconfig
default 2 <- from arch/x86/Kconfig
default 2 <- from arch/Kconfig
Signature · 2 lines
Best Regards Masahiro Yamada
Re: [PATCH 2/5] Kconfig: consolidate the "Kernel hacking menu"
In reply to Christoph Hellwig2018-07-02 23:47 GMT+09:00 Christoph Hellwig <[email protected]>:
Quoted 22 lines
Move the source of
lib/Kconfig.debugand arch/$(ARCH)/Kconfig.debug to the top-levelKconfig. For two architectures that means moving their arch-specific symbols in that menu into a new archKconfig.debugfile, 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 <[email protected]>---
arch/c6x/Kconfig.debug new file +1
-0@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0
arch/c6x/Kconfig.debug line 11
Quoted 10 lines
arch/c6x/Kconfig.debug new file +10
-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. +
Just a nit:
When I ran 'git am', it complained about a blank line at the end of file.
.git/rebase-apply/patch:229: new blank line at EOF.
Signature · 2 lines
Best Regards Masahiro Yamada
Hi.
2018-07-02 23:47 GMT+09:00 Christoph Hellwig <[email protected]>:
Quoted 9 lines
Hi Masahiro,
what do you think about the series below, which moves the includes of all the architecture independ
Kconfigfiles to the top-levelKconfiginstead of duplicating the includes in all architectures?Note that this only handles the low-hanging fruite, there are a lot of other bits that should probably be cleaned up to be common, but those will be not entirely trivial.
Basically, I am positive about this work.
As you have already noticed,
the UML breakage should be fixed.
If the reported problems are stretched out,
I think this is a nice cleanup.
Thanks.
Quoted 3 lines
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Best Regards Masahiro Yamada
Re: [PATCH 1/5] kconfig: include common Kconfig files from top-level Kconfig
In reply to Randy Dunlap2018-07-03 5:50 GMT+09:00 Randy Dunlap <[email protected]>:
Quoted 53 lines · Randy Dunlap
Quoted 7 lines
init/Kconfig +0
-0@@ -1717,6 +1717,12 @@ config PROFILING config TRACEPOINTS boolinit/Kconfig config PROFILING · line 1728
Quoted 10 lines
init/Kconfig +6
-0+# Note: arch/$(SRCARCH)/Kconfig needs to be before arch/Kconfig +# so that each $ARCH can specify its values for CONFIG_PGTABLE_LEVELS +# before the default value is found in arch/Kconfig. + +source "arch/$(SRCARCH)/Kconfig" + source "arch/Kconfig" endmenu # General setupexcept that the endmenu should be moved up a few lines so that the Processor type and features menu is not part of the General setup menu.
v2 patch is below.
---
From: Randy Dunlap <[email protected]>Present "General setup" before "Processor type and features". This is done by sourcing arch/$(SRCARCH)/Kconfig before
arch/Kconfiginside init/Kconfig.Signed-off-by Randy Dunlap <[email protected]>---
v2: move General setup's endmenu before the $ARCH Kconfigs.Kconfig | 2 -- init/Kconfig | 10 ++++++++-- 2 files changed, 8 insertions(+), 4 deletions(-)Kconfig +0
-2@@ -9,8 +9,6 @@ comment "Compiler: $(CC_VERSION_TEXT)" source "scripts/Kconfig.include" -source "arch/$(SRCARCH)/Kconfig" - source "init/Kconfig" source "kernel/Kconfig.freezer"
init/Kconfig config PROFILING · line 1724
Quoted 10 lines
init/Kconfig +3
-2@@ -1717,10 +1717,16 @@ config PROFILING config TRACEPOINTS bool -source "arch/Kconfig" - endmenu # General setup +# Note: arch/$(SRCARCH)/Kconfig needs to be before arch/Kconfig +# so that each $ARCH can specify its values for CONFIG_PGTABLE_LEVELS +# before the default value is found in arch/Kconfig.
Is it possible to explain it in a little more generic way?
...
so that arch/$(SRCARCH)/Kconfig can override the default values in arch/Kconfig.
I am not a native speaker.
Please reword it so that it sounds more natural.
Thanks.
Quoted 13 lines
init/Kconfig +4
-1+source "arch/$(SRCARCH)/Kconfig" + +source "arch/Kconfig" + config RT_MUTEXES bool --To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Best Regards Masahiro Yamada