diff options
author | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-10-16 09:42:16 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-10-17 02:39:42 -0400 |
commit | b3569d3a4b4fe93ee33eaa3c69ec3ed2cd3b276a (patch) | |
tree | a7629a53125a2f73a563a61812dbec517e892d7c | |
parent | b955a910d7fde877e068f68fada5aac02e3a073d (diff) |
x86/kconfig: Remove redundant 'default n' lines from all x86 Kconfig's
'default n' is the default value for any bool or tristate Kconfig
setting so there is no need to write it explicitly.
Also, since commit:
f467c5640c29 ("kconfig: only write '# CONFIG_FOO is not set' for visible symbols")
... the Kconfig behavior is the same regardless of 'default n' being present or not:
...
One side effect of (and the main motivation for) this change is making
the following two definitions behave exactly the same:
config FOO
bool
config FOO
bool
default n
With this change, neither of these will generate a
'# CONFIG_FOO is not set' line (assuming FOO isn't selected/implied).
That might make it clearer to people that a bare 'default n' is
redundant.
...
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Juergen Gross <jgross@suse.co>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: xen-devel@lists.xenproject.org
Link: http://lkml.kernel.org/r/20181016134217eucas1p2102984488b89178a865162553369025b%7EeGpI5NlJo0851008510eucas1p2D@eucas1p2.samsung.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/Kconfig | 7 | ||||
-rw-r--r-- | arch/x86/Kconfig.debug | 1 | ||||
-rw-r--r-- | arch/x86/xen/Kconfig | 1 |
3 files changed, 0 insertions, 9 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 1a0be022f91d..6db8aa5455b9 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -447,7 +447,6 @@ config RETPOLINE | |||
447 | 447 | ||
448 | config INTEL_RDT | 448 | config INTEL_RDT |
449 | bool "Intel Resource Director Technology support" | 449 | bool "Intel Resource Director Technology support" |
450 | default n | ||
451 | depends on X86 && CPU_SUP_INTEL | 450 | depends on X86 && CPU_SUP_INTEL |
452 | select KERNFS | 451 | select KERNFS |
453 | help | 452 | help |
@@ -701,7 +700,6 @@ config STA2X11 | |||
701 | select SWIOTLB | 700 | select SWIOTLB |
702 | select MFD_STA2X11 | 701 | select MFD_STA2X11 |
703 | select GPIOLIB | 702 | select GPIOLIB |
704 | default n | ||
705 | ---help--- | 703 | ---help--- |
706 | This adds support for boards based on the STA2X11 IO-Hub, | 704 | This adds support for boards based on the STA2X11 IO-Hub, |
707 | a.k.a. "ConneXt". The chip is used in place of the standard | 705 | a.k.a. "ConneXt". The chip is used in place of the standard |
@@ -799,7 +797,6 @@ config KVM_GUEST | |||
799 | config KVM_DEBUG_FS | 797 | config KVM_DEBUG_FS |
800 | bool "Enable debug information for KVM Guests in debugfs" | 798 | bool "Enable debug information for KVM Guests in debugfs" |
801 | depends on KVM_GUEST && DEBUG_FS | 799 | depends on KVM_GUEST && DEBUG_FS |
802 | default n | ||
803 | ---help--- | 800 | ---help--- |
804 | This option enables collection of various statistics for KVM guest. | 801 | This option enables collection of various statistics for KVM guest. |
805 | Statistics are displayed in debugfs filesystem. Enabling this option | 802 | Statistics are displayed in debugfs filesystem. Enabling this option |
@@ -808,7 +805,6 @@ config KVM_DEBUG_FS | |||
808 | config PARAVIRT_TIME_ACCOUNTING | 805 | config PARAVIRT_TIME_ACCOUNTING |
809 | bool "Paravirtual steal time accounting" | 806 | bool "Paravirtual steal time accounting" |
810 | depends on PARAVIRT | 807 | depends on PARAVIRT |
811 | default n | ||
812 | ---help--- | 808 | ---help--- |
813 | Select this option to enable fine granularity task steal time | 809 | Select this option to enable fine granularity task steal time |
814 | accounting. Time spent executing other tasks in parallel with | 810 | accounting. Time spent executing other tasks in parallel with |
@@ -1168,7 +1164,6 @@ source "arch/x86/events/Kconfig" | |||
1168 | 1164 | ||
1169 | config X86_LEGACY_VM86 | 1165 | config X86_LEGACY_VM86 |
1170 | bool "Legacy VM86 support" | 1166 | bool "Legacy VM86 support" |
1171 | default n | ||
1172 | depends on X86_32 | 1167 | depends on X86_32 |
1173 | ---help--- | 1168 | ---help--- |
1174 | This option allows user programs to put the CPU into V8086 | 1169 | This option allows user programs to put the CPU into V8086 |
@@ -2220,7 +2215,6 @@ config HOTPLUG_CPU | |||
2220 | 2215 | ||
2221 | config BOOTPARAM_HOTPLUG_CPU0 | 2216 | config BOOTPARAM_HOTPLUG_CPU0 |
2222 | bool "Set default setting of cpu0_hotpluggable" | 2217 | bool "Set default setting of cpu0_hotpluggable" |
2223 | default n | ||
2224 | depends on HOTPLUG_CPU | 2218 | depends on HOTPLUG_CPU |
2225 | ---help--- | 2219 | ---help--- |
2226 | Set whether default state of cpu0_hotpluggable is on or off. | 2220 | Set whether default state of cpu0_hotpluggable is on or off. |
@@ -2825,7 +2819,6 @@ source "drivers/pcmcia/Kconfig" | |||
2825 | config RAPIDIO | 2819 | config RAPIDIO |
2826 | tristate "RapidIO support" | 2820 | tristate "RapidIO support" |
2827 | depends on PCI | 2821 | depends on PCI |
2828 | default n | ||
2829 | help | 2822 | help |
2830 | If enabled this option will include drivers and the core | 2823 | If enabled this option will include drivers and the core |
2831 | infrastructure code to support RapidIO interconnect devices. | 2824 | infrastructure code to support RapidIO interconnect devices. |
diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 7d68f0c7cfb1..0723dff17e6c 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug | |||
@@ -314,7 +314,6 @@ config DEBUG_NMI_SELFTEST | |||
314 | 314 | ||
315 | config DEBUG_IMR_SELFTEST | 315 | config DEBUG_IMR_SELFTEST |
316 | bool "Isolated Memory Region self test" | 316 | bool "Isolated Memory Region self test" |
317 | default n | ||
318 | depends on INTEL_IMR | 317 | depends on INTEL_IMR |
319 | ---help--- | 318 | ---help--- |
320 | This option enables automated sanity testing of the IMR code. | 319 | This option enables automated sanity testing of the IMR code. |
diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig index c1f98f32c45f..14be6a5935e1 100644 --- a/arch/x86/xen/Kconfig +++ b/arch/x86/xen/Kconfig | |||
@@ -68,7 +68,6 @@ config XEN_SAVE_RESTORE | |||
68 | config XEN_DEBUG_FS | 68 | config XEN_DEBUG_FS |
69 | bool "Enable Xen debug and tuning parameters in debugfs" | 69 | bool "Enable Xen debug and tuning parameters in debugfs" |
70 | depends on XEN && DEBUG_FS | 70 | depends on XEN && DEBUG_FS |
71 | default n | ||
72 | help | 71 | help |
73 | Enable statistics output and various tuning options in debugfs. | 72 | Enable statistics output and various tuning options in debugfs. |
74 | Enabling this option may incur a significant performance overhead. | 73 | Enabling this option may incur a significant performance overhead. |