treewide: replace or remove redundant def_bool in Kconfig files

'def_bool X' is a shorthand for 'bool' plus 'default X'.

'def_bool' is redundant where 'bool' is already present, so 'def_bool X'
can be replaced with 'default X', or removed if X is 'n'.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
Masahiro Yamada 2024-02-11 21:48:08 +09:00
parent 91b69454f9
commit cd14b01846
11 changed files with 11 additions and 15 deletions

View File

@ -237,9 +237,9 @@ config PARISC_HUGE_KERNEL
def_bool y if !MODULES || UBSAN || FTRACE || COMPILE_TEST def_bool y if !MODULES || UBSAN || FTRACE || COMPILE_TEST
config MLONGCALLS config MLONGCALLS
def_bool y if PARISC_HUGE_KERNEL
bool "Enable the -mlong-calls compiler option for big kernels" if !PARISC_HUGE_KERNEL bool "Enable the -mlong-calls compiler option for big kernels" if !PARISC_HUGE_KERNEL
depends on PA8X00 depends on PA8X00
default PARISC_HUGE_KERNEL
help help
If you configure the kernel to include many drivers built-in instead If you configure the kernel to include many drivers built-in instead
as modules, the kernel executable may become too big, so that the as modules, the kernel executable may become too big, so that the
@ -254,9 +254,9 @@ config MLONGCALLS
Enabling this option will probably slow down your kernel. Enabling this option will probably slow down your kernel.
config 64BIT config 64BIT
def_bool y if "$(ARCH)" = "parisc64"
bool "64-bit kernel" if "$(ARCH)" = "parisc" bool "64-bit kernel" if "$(ARCH)" = "parisc"
depends on PA8X00 depends on PA8X00
default "$(ARCH)" = "parisc64"
help help
Enable this if you want to support 64bit kernel on PA-RISC platform. Enable this if you want to support 64bit kernel on PA-RISC platform.

View File

@ -6,7 +6,7 @@ config AS_HAS_ULEB128
menuconfig RUNTIME_KERNEL_TESTING_MENU menuconfig RUNTIME_KERNEL_TESTING_MENU
bool "arch/riscv/kernel runtime Testing" bool "arch/riscv/kernel runtime Testing"
def_bool y default y
help help
Enable riscv kernel runtime testing. Enable riscv kernel runtime testing.

View File

@ -119,8 +119,8 @@ config KVM_AMD
will be called kvm-amd. will be called kvm-amd.
config KVM_AMD_SEV config KVM_AMD_SEV
def_bool y
bool "AMD Secure Encrypted Virtualization (SEV) support" bool "AMD Secure Encrypted Virtualization (SEV) support"
default y
depends on KVM_AMD && X86_64 depends on KVM_AMD && X86_64
depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m) depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m)
help help

View File

@ -81,7 +81,6 @@ config XEN_PVH
bool "Xen PVH guest support" bool "Xen PVH guest support"
depends on XEN && XEN_PVHVM && ACPI depends on XEN && XEN_PVHVM && ACPI
select PVH select PVH
def_bool n
help help
Support for running as a Xen PVH guest. Support for running as a Xen PVH guest.

View File

@ -474,7 +474,6 @@ config ACPI_BGRT
config ACPI_REDUCED_HARDWARE_ONLY config ACPI_REDUCED_HARDWARE_ONLY
bool "Hardware-reduced ACPI support only" if EXPERT bool "Hardware-reduced ACPI support only" if EXPERT
def_bool n
help help
This config item changes the way the ACPI code is built. When this This config item changes the way the ACPI code is built. When this
option is selected, the kernel will use a specialized version of option is selected, the kernel will use a specialized version of

View File

@ -97,8 +97,8 @@ config INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON
the default value. the default value.
config INTEL_IOMMU_PERF_EVENTS config INTEL_IOMMU_PERF_EVENTS
def_bool y
bool "Intel IOMMU performance events" bool "Intel IOMMU performance events"
default y
depends on INTEL_IOMMU && PERF_EVENTS depends on INTEL_IOMMU && PERF_EVENTS
help help
Selecting this option will enable the performance monitoring Selecting this option will enable the performance monitoring

View File

@ -519,7 +519,6 @@ config DM_VERITY
If unsure, say N. If unsure, say N.
config DM_VERITY_VERIFY_ROOTHASH_SIG config DM_VERITY_VERIFY_ROOTHASH_SIG
def_bool n
bool "Verity data device root hash signature verification support" bool "Verity data device root hash signature verification support"
depends on DM_VERITY depends on DM_VERITY
select SYSTEM_DATA_VERIFICATION select SYSTEM_DATA_VERIFICATION

View File

@ -1504,7 +1504,7 @@ config MULTIUSER
config SGETMASK_SYSCALL config SGETMASK_SYSCALL
bool "sgetmask/ssetmask syscalls support" if EXPERT bool "sgetmask/ssetmask syscalls support" if EXPERT
def_bool PARISC || M68K || PPC || MIPS || X86 || SPARC || MICROBLAZE || SUPERH default PARISC || M68K || PPC || MIPS || X86 || SPARC || MICROBLAZE || SUPERH
help help
sys_sgetmask and sys_ssetmask are obsolete system calls sys_sgetmask and sys_ssetmask are obsolete system calls
no longer supported in libc but still enabled by default in some no longer supported in libc but still enabled by default in some

View File

@ -2127,7 +2127,7 @@ config KCOV_IRQ_AREA_SIZE
menuconfig RUNTIME_TESTING_MENU menuconfig RUNTIME_TESTING_MENU
bool "Runtime Testing" bool "Runtime Testing"
def_bool y default y
if RUNTIME_TESTING_MENU if RUNTIME_TESTING_MENU

View File

@ -599,7 +599,7 @@ config MEMORY_BALLOON
# support for memory balloon compaction # support for memory balloon compaction
config BALLOON_COMPACTION config BALLOON_COMPACTION
bool "Allow for balloon memory compaction/migration" bool "Allow for balloon memory compaction/migration"
def_bool y default y
depends on COMPACTION && MEMORY_BALLOON depends on COMPACTION && MEMORY_BALLOON
help help
Memory fragmentation introduced by ballooning might reduce Memory fragmentation introduced by ballooning might reduce
@ -614,7 +614,7 @@ config BALLOON_COMPACTION
# support for memory compaction # support for memory compaction
config COMPACTION config COMPACTION
bool "Allow for memory compaction" bool "Allow for memory compaction"
def_bool y default y
select MIGRATION select MIGRATION
depends on MMU depends on MMU
help help
@ -637,7 +637,6 @@ config COMPACT_UNEVICTABLE_DEFAULT
# support for free page reporting # support for free page reporting
config PAGE_REPORTING config PAGE_REPORTING
bool "Free page reporting" bool "Free page reporting"
def_bool n
help help
Free page reporting allows for the incremental acquisition of Free page reporting allows for the incremental acquisition of
free pages from the buddy allocator for the purpose of reporting free pages from the buddy allocator for the purpose of reporting
@ -649,7 +648,7 @@ config PAGE_REPORTING
# #
config MIGRATION config MIGRATION
bool "Page migration" bool "Page migration"
def_bool y default y
depends on (NUMA || ARCH_ENABLE_MEMORY_HOTREMOVE || COMPACTION || CMA) && MMU depends on (NUMA || ARCH_ENABLE_MEMORY_HOTREMOVE || COMPACTION || CMA) && MMU
help help
Allows the migration of the physical location of pages of processes Allows the migration of the physical location of pages of processes

View File

@ -13,7 +13,7 @@ config IP_DCCP_CCID2_DEBUG
config IP_DCCP_CCID3 config IP_DCCP_CCID3
bool "CCID-3 (TCP-Friendly)" bool "CCID-3 (TCP-Friendly)"
def_bool y if (IP_DCCP = y || IP_DCCP = m) default IP_DCCP = y || IP_DCCP = m
help help
CCID-3 denotes TCP-Friendly Rate Control (TFRC), an equation-based CCID-3 denotes TCP-Friendly Rate Control (TFRC), an equation-based
rate-controlled congestion control mechanism. TFRC is designed to rate-controlled congestion control mechanism. TFRC is designed to