Commit 9ba16087d9f996a93ab6f4453a52a4b24bc1f25c

Authored by Jan Beulich
Committed by Linus Torvalds
1 parent a25d644fc0

Kconfig: eliminate "def_bool n" constructs

Using "def_bool n" is pointless, simply using bool here appears more
appropriate.

Further, retaining such options that don't have a prompt and aren't
selected by anything seems also at least questionable.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 7 changed files with 19 additions and 41 deletions Side-by-side Diff

... ... @@ -28,7 +28,7 @@
28 28 If unsure, say N.
29 29  
30 30 config HAVE_OPROFILE
31   - def_bool n
  31 + bool
32 32  
33 33 config KPROBES
34 34 bool "Kprobes"
... ... @@ -42,7 +42,7 @@
42 42 If in doubt, say "N".
43 43  
44 44 config HAVE_EFFICIENT_UNALIGNED_ACCESS
45   - def_bool n
  45 + bool
46 46 help
47 47 Some architectures are unable to perform unaligned accesses
48 48 without the use of get_unaligned/put_unaligned. Others are
49 49  
50 50  
... ... @@ -65,13 +65,13 @@
65 65 depends on KPROBES && HAVE_KRETPROBES
66 66  
67 67 config HAVE_IOREMAP_PROT
68   - def_bool n
  68 + bool
69 69  
70 70 config HAVE_KPROBES
71   - def_bool n
  71 + bool
72 72  
73 73 config HAVE_KRETPROBES
74   - def_bool n
  74 + bool
75 75  
76 76 #
77 77 # An arch should select this if it provides all these things:
78 78  
79 79  
80 80  
... ... @@ -89,16 +89,16 @@
89 89 # signal delivery calls tracehook_signal_handler()
90 90 #
91 91 config HAVE_ARCH_TRACEHOOK
92   - def_bool n
  92 + bool
93 93  
94 94 config HAVE_DMA_ATTRS
95   - def_bool n
  95 + bool
96 96  
97 97 config USE_GENERIC_SMP_HELPERS
98   - def_bool n
  98 + bool
99 99  
100 100 config HAVE_CLK
101   - def_bool n
  101 + bool
102 102 help
103 103 The <linux/clk.h> calls support software clock gating and
104 104 thus are a key power management tool on many systems.
... ... @@ -60,14 +60,6 @@
60 60 bool
61 61 default y
62 62  
63   -config ARCH_HAS_ILOG2_U32
64   - bool
65   - default n
66   -
67   -config ARCH_HAS_ILOG2_U64
68   - bool
69   - default n
70   -
71 63 config HUGETLB_PAGE_SIZE_VARIABLE
72 64 bool
73 65 depends on HUGETLB_PAGE
... ... @@ -39,10 +39,6 @@
39 39 default "arch/x86/configs/i386_defconfig" if X86_32
40 40 default "arch/x86/configs/x86_64_defconfig" if X86_64
41 41  
42   -
43   -config GENERIC_LOCKBREAK
44   - def_bool n
45   -
46 42 config GENERIC_TIME
47 43 def_bool y
48 44  
... ... @@ -95,7 +91,7 @@
95 91 def_bool y
96 92  
97 93 config GENERIC_GPIO
98   - def_bool n
  94 + bool
99 95  
100 96 config ARCH_MAY_HAVE_PC_FDC
101 97 def_bool y
... ... @@ -106,12 +102,6 @@
106 102 config RWSEM_XCHGADD_ALGORITHM
107 103 def_bool X86_XADD
108 104  
109   -config ARCH_HAS_ILOG2_U32
110   - def_bool n
111   -
112   -config ARCH_HAS_ILOG2_U64
113   - def_bool n
114   -
115 105 config ARCH_HAS_CPU_IDLE_WAIT
116 106 def_bool y
117 107  
... ... @@ -758,9 +748,8 @@
758 748 Say N otherwise.
759 749  
760 750 config X86_REBOOTFIXUPS
761   - def_bool n
762   - prompt "Enable X86 board specific fixups for reboot"
763   - depends on X86_32 && X86
  751 + bool "Enable X86 board specific fixups for reboot"
  752 + depends on X86_32
764 753 ---help---
765 754 This enables chipset and/or board specific fixups to be done
766 755 in order to get reboot to work correctly. This is only needed on
... ... @@ -944,8 +933,7 @@
944 933 depends on X86_32 && (HIGHMEM64G || HIGHMEM4G)
945 934  
946 935 config X86_PAE
947   - def_bool n
948   - prompt "PAE (Physical Address Extension) Support"
  936 + bool "PAE (Physical Address Extension) Support"
949 937 depends on X86_32 && !HIGHMEM4G
950 938 select RESOURCES_64BIT
951 939 help
... ... @@ -1238,8 +1226,7 @@
1238 1226 If unsure, say Y.
1239 1227  
1240 1228 config EFI
1241   - def_bool n
1242   - prompt "EFI runtime service support"
  1229 + bool "EFI runtime service support"
1243 1230 depends on ACPI
1244 1231 ---help---
1245 1232 This enables the kernel to use EFI runtime services that are
... ... @@ -4,7 +4,7 @@
4 4  
5 5 # Select HAVE_IDE if IDE is supported
6 6 config HAVE_IDE
7   - def_bool n
  7 + bool
8 8  
9 9 menuconfig IDE
10 10 tristate "ATA/ATAPI/MFM/RLL support"
... ... @@ -3,7 +3,6 @@
3 3 #
4 4 config TICK_ONESHOT
5 5 bool
6   - default n
7 6  
8 7 config NO_HZ
9 8 bool "Tickless System (Dynamic Ticks)"
... ... @@ -8,10 +8,10 @@
8 8 tristate
9 9  
10 10 config GENERIC_FIND_FIRST_BIT
11   - def_bool n
  11 + bool
12 12  
13 13 config GENERIC_FIND_NEXT_BIT
14   - def_bool n
  14 + bool
15 15  
16 16 config CRC_CCITT
17 17 tristate "CRC-CCITT functions"
... ... @@ -101,7 +101,7 @@
101 101 # with gcc 3.4 and later.
102 102 #
103 103 config SPARSEMEM_STATIC
104   - def_bool n
  104 + bool
105 105  
106 106 #
107 107 # Architecture platforms which require a two level mem_section in SPARSEMEM
... ... @@ -113,7 +113,7 @@
113 113 depends on SPARSEMEM && !SPARSEMEM_STATIC
114 114  
115 115 config SPARSEMEM_VMEMMAP_ENABLE
116   - def_bool n
  116 + bool
117 117  
118 118 config SPARSEMEM_VMEMMAP
119 119 bool "Sparse Memory virtual memmap"