Skip to content

Commit 719736e

Browse files
bzolniermpe
authored andcommitted
powerpc: remove redundant 'default n' from 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 f467c56 ("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> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent b27e5f9 commit 719736e

15 files changed

Lines changed: 0 additions & 95 deletions

File tree

‎arch/powerpc/Kconfig‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,10 @@ config ARCH_MAY_HAVE_PC_FDC
286286

287287
config PPC_UDBG_16550
288288
bool
289-
default n
290289

291290
config GENERIC_TBSYNC
292291
bool
293292
default y if PPC32 && SMP
294-
default n
295293

296294
config AUDIT_ARCH
297295
bool
@@ -310,13 +308,11 @@ config EPAPR_BOOT
310308
bool
311309
help
312310
Used to allow a board to specify it wants an ePAPR compliant wrapper.
313-
default n
314311

315312
config DEFAULT_UIMAGE
316313
bool
317314
help
318315
Used to allow a board to specify it wants a uImage built by default
319-
default n
320316

321317
config ARCH_HIBERNATION_POSSIBLE
322318
bool
@@ -330,11 +326,9 @@ config ARCH_SUSPEND_POSSIBLE
330326

331327
config PPC_DCR_NATIVE
332328
bool
333-
default n
334329

335330
config PPC_DCR_MMIO
336331
bool
337-
default n
338332

339333
config PPC_DCR
340334
bool
@@ -345,7 +339,6 @@ config PPC_OF_PLATFORM_PCI
345339
bool
346340
depends on PCI
347341
depends on PPC64 # not supported on 32 bits yet
348-
default n
349342

350343
config ARCH_SUPPORTS_DEBUG_PAGEALLOC
351344
depends on PPC32 || PPC_BOOK3S_64
@@ -448,14 +441,12 @@ config PPC_TRANSACTIONAL_MEM
448441
depends on SMP
449442
select ALTIVEC
450443
select VSX
451-
default n
452444
---help---
453445
Support user-mode Transactional Memory on POWERPC.
454446

455447
config LD_HEAD_STUB_CATCH
456448
bool "Reserve 256 bytes to cope with linker stubs in HEAD text" if EXPERT
457449
depends on PPC64
458-
default n
459450
help
460451
Very large kernels can cause linker branch stubs to be generated by
461452
code in head_64.S, which moves the head text sections out of their
@@ -558,7 +549,6 @@ config RELOCATABLE
558549
config RELOCATABLE_TEST
559550
bool "Test relocatable kernel"
560551
depends on (PPC64 && RELOCATABLE)
561-
default n
562552
help
563553
This runs the relocatable kernel at the address it was initially
564554
loaded at, which tends to be non-zero and therefore test the
@@ -770,7 +760,6 @@ config PPC_SUBPAGE_PROT
770760

771761
config PPC_COPRO_BASE
772762
bool
773-
default n
774763

775764
config SCHED_SMT
776765
bool "SMT (Hyperthreading) scheduler support"
@@ -893,7 +882,6 @@ config PPC_INDIRECT_PCI
893882
bool
894883
depends on PCI
895884
default y if 40x || 44x
896-
default n
897885

898886
config EISA
899887
bool
@@ -990,7 +978,6 @@ source "drivers/pcmcia/Kconfig"
990978

991979
config HAS_RAPIDIO
992980
bool
993-
default n
994981

995982
config RAPIDIO
996983
tristate "RapidIO support"
@@ -1013,7 +1000,6 @@ endmenu
10131000

10141001
config NONSTATIC_KERNEL
10151002
bool
1016-
default n
10171003

10181004
menu "Advanced setup"
10191005
depends on PPC32

‎arch/powerpc/Kconfig.debug‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
config PPC_DISABLE_WERROR
44
bool "Don't build arch/powerpc code with -Werror"
5-
default n
65
help
76
This option tells the compiler NOT to build the code under
87
arch/powerpc with the -Werror flag (which means warnings
@@ -56,7 +55,6 @@ config PPC_EMULATED_STATS
5655
config CODE_PATCHING_SELFTEST
5756
bool "Run self-tests of the code-patching code"
5857
depends on DEBUG_KERNEL
59-
default n
6058

6159
config JUMP_LABEL_FEATURE_CHECKS
6260
bool "Enable use of jump label for cpu/mmu_has_feature()"
@@ -70,7 +68,6 @@ config JUMP_LABEL_FEATURE_CHECKS
7068
config JUMP_LABEL_FEATURE_CHECK_DEBUG
7169
bool "Do extra check on feature fixup calls"
7270
depends on DEBUG_KERNEL && JUMP_LABEL_FEATURE_CHECKS
73-
default n
7471
help
7572
This tries to catch incorrect usage of cpu_has_feature() and
7673
mmu_has_feature() in the code.
@@ -80,16 +77,13 @@ config JUMP_LABEL_FEATURE_CHECK_DEBUG
8077
config FTR_FIXUP_SELFTEST
8178
bool "Run self-tests of the feature-fixup code"
8279
depends on DEBUG_KERNEL
83-
default n
8480

8581
config MSI_BITMAP_SELFTEST
8682
bool "Run self-tests of the MSI bitmap code"
8783
depends on DEBUG_KERNEL
88-
default n
8984

9085
config PPC_IRQ_SOFT_MASK_DEBUG
9186
bool "Include extra checks for powerpc irq soft masking"
92-
default n
9387

9488
config XMON
9589
bool "Include xmon kernel debugger"

‎arch/powerpc/platforms/40x/Kconfig‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
config ACADIA
33
bool "Acadia"
44
depends on 40x
5-
default n
65
select PPC40x_SIMPLE
76
select 405EZ
87
help
@@ -11,7 +10,6 @@ config ACADIA
1110
config EP405
1211
bool "EP405/EP405PC"
1312
depends on 40x
14-
default n
1513
select 405GP
1614
select PCI
1715
help
@@ -20,7 +18,6 @@ config EP405
2018
config HOTFOOT
2119
bool "Hotfoot"
2220
depends on 40x
23-
default n
2421
select PPC40x_SIMPLE
2522
select PCI
2623
help
@@ -29,7 +26,6 @@ config HOTFOOT
2926
config KILAUEA
3027
bool "Kilauea"
3128
depends on 40x
32-
default n
3329
select 405EX
3430
select PPC40x_SIMPLE
3531
select PPC4xx_PCI_EXPRESS
@@ -41,7 +37,6 @@ config KILAUEA
4137
config MAKALU
4238
bool "Makalu"
4339
depends on 40x
44-
default n
4540
select 405EX
4641
select PCI
4742
select PPC4xx_PCI_EXPRESS
@@ -62,7 +57,6 @@ config WALNUT
6257
config XILINX_VIRTEX_GENERIC_BOARD
6358
bool "Generic Xilinx Virtex board"
6459
depends on 40x
65-
default n
6660
select XILINX_VIRTEX_II_PRO
6761
select XILINX_VIRTEX_4_FX
6862
select XILINX_INTC
@@ -80,7 +74,6 @@ config XILINX_VIRTEX_GENERIC_BOARD
8074
config OBS600
8175
bool "OpenBlockS 600"
8276
depends on 40x
83-
default n
8477
select 405EX
8578
select PPC40x_SIMPLE
8679
help
@@ -90,7 +83,6 @@ config OBS600
9083
config PPC40x_SIMPLE
9184
bool "Simple PowerPC 40x board support"
9285
depends on 40x
93-
default n
9486
help
9587
This option enables the simple PowerPC 40x platform support.
9688

@@ -156,7 +148,6 @@ config IBM405_ERR51
156148
config APM8018X
157149
bool "APM8018X"
158150
depends on 40x
159-
default n
160151
select PPC40x_SIMPLE
161152
help
162153
This option enables support for the AppliedMicro APM8018X evaluation

‎arch/powerpc/platforms/44x/Kconfig‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
config PPC_47x
33
bool "Support for 47x variant"
44
depends on 44x
5-
default n
65
select MPIC
76
help
87
This option enables support for the 47x family of processors and is
@@ -11,7 +10,6 @@ config PPC_47x
1110
config BAMBOO
1211
bool "Bamboo"
1312
depends on 44x
14-
default n
1513
select PPC44x_SIMPLE
1614
select 440EP
1715
select PCI
@@ -21,7 +19,6 @@ config BAMBOO
2119
config BLUESTONE
2220
bool "Bluestone"
2321
depends on 44x
24-
default n
2522
select PPC44x_SIMPLE
2623
select APM821xx
2724
select PCI_MSI
@@ -44,7 +41,6 @@ config EBONY
4441
config SAM440EP
4542
bool "Sam440ep"
4643
depends on 44x
47-
default n
4844
select 440EP
4945
select PCI
5046
help
@@ -53,7 +49,6 @@ config SAM440EP
5349
config SEQUOIA
5450
bool "Sequoia"
5551
depends on 44x
56-
default n
5752
select PPC44x_SIMPLE
5853
select 440EPX
5954
help
@@ -62,7 +57,6 @@ config SEQUOIA
6257
config TAISHAN
6358
bool "Taishan"
6459
depends on 44x
65-
default n
6660
select PPC44x_SIMPLE
6761
select 440GX
6862
select PCI
@@ -73,7 +67,6 @@ config TAISHAN
7367
config KATMAI
7468
bool "Katmai"
7569
depends on 44x
76-
default n
7770
select PPC44x_SIMPLE
7871
select 440SPe
7972
select PCI
@@ -86,7 +79,6 @@ config KATMAI
8679
config RAINIER
8780
bool "Rainier"
8881
depends on 44x
89-
default n
9082
select PPC44x_SIMPLE
9183
select 440GRX
9284
select PCI
@@ -96,7 +88,6 @@ config RAINIER
9688
config WARP
9789
bool "PIKA Warp"
9890
depends on 44x
99-
default n
10091
select 440EP
10192
help
10293
This option enables support for the PIKA Warp(tm) Appliance. The Warp
@@ -109,7 +100,6 @@ config WARP
109100
config ARCHES
110101
bool "Arches"
111102
depends on 44x
112-
default n
113103
select PPC44x_SIMPLE
114104
select 460EX # Odd since it uses 460GT but the effects are the same
115105
select PCI
@@ -120,7 +110,6 @@ config ARCHES
120110
config CANYONLANDS
121111
bool "Canyonlands"
122112
depends on 44x
123-
default n
124113
select 460EX
125114
select PCI
126115
select PPC4xx_PCI_EXPRESS
@@ -134,7 +123,6 @@ config CANYONLANDS
134123
config GLACIER
135124
bool "Glacier"
136125
depends on 44x
137-
default n
138126
select PPC44x_SIMPLE
139127
select 460EX # Odd since it uses 460GT but the effects are the same
140128
select PCI
@@ -147,7 +135,6 @@ config GLACIER
147135
config REDWOOD
148136
bool "Redwood"
149137
depends on 44x
150-
default n
151138
select PPC44x_SIMPLE
152139
select 460SX
153140
select PCI
@@ -160,7 +147,6 @@ config REDWOOD
160147
config EIGER
161148
bool "Eiger"
162149
depends on 44x
163-
default n
164150
select PPC44x_SIMPLE
165151
select 460SX
166152
select PCI
@@ -172,7 +158,6 @@ config EIGER
172158
config YOSEMITE
173159
bool "Yosemite"
174160
depends on 44x
175-
default n
176161
select PPC44x_SIMPLE
177162
select 440EP
178163
select PCI
@@ -182,7 +167,6 @@ config YOSEMITE
182167
config ISS4xx
183168
bool "ISS 4xx Simulator"
184169
depends on (44x || 40x)
185-
default n
186170
select 405GP if 40x
187171
select 440GP if 44x && !PPC_47x
188172
select PPC_FPU
@@ -193,7 +177,6 @@ config ISS4xx
193177
config CURRITUCK
194178
bool "IBM Currituck (476fpe) Support"
195179
depends on PPC_47x
196-
default n
197180
select SWIOTLB
198181
select 476FPE
199182
select PPC4xx_PCI_EXPRESS
@@ -203,7 +186,6 @@ config CURRITUCK
203186
config FSP2
204187
bool "IBM FSP2 (476fpe) Support"
205188
depends on PPC_47x
206-
default n
207189
select 476FPE
208190
select IBM_EMAC_EMAC4 if IBM_EMAC
209191
select IBM_EMAC_RGMII if IBM_EMAC
@@ -215,7 +197,6 @@ config FSP2
215197
config AKEBONO
216198
bool "IBM Akebono (476gtr) Support"
217199
depends on PPC_47x
218-
default n
219200
select SWIOTLB
220201
select 476FPE
221202
select PPC4xx_PCI_EXPRESS
@@ -241,7 +222,6 @@ config AKEBONO
241222
config ICON
242223
bool "Icon"
243224
depends on 44x
244-
default n
245225
select PPC44x_SIMPLE
246226
select 440SPe
247227
select PCI
@@ -252,7 +232,6 @@ config ICON
252232
config XILINX_VIRTEX440_GENERIC_BOARD
253233
bool "Generic Xilinx Virtex 5 FXT board support"
254234
depends on 44x
255-
default n
256235
select XILINX_VIRTEX_5_FXT
257236
select XILINX_INTC
258237
help
@@ -280,7 +259,6 @@ config XILINX_ML510
280259
config PPC44x_SIMPLE
281260
bool "Simple PowerPC 44x board support"
282261
depends on 44x
283-
default n
284262
help
285263
This option enables the simple PowerPC 44x platform support.
286264

‎arch/powerpc/platforms/82xx/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ endif
5151

5252
config PQ2ADS
5353
bool
54-
default n
5554

5655
config 8260
5756
bool

0 commit comments

Comments
 (0)