Skip to content

Commit 54f0f3b

Browse files
riscv: Kconfig: Style cleanups
The majority of the Kconfig files use a single tab for basic indentation and a single tab followed by two whitespaces for help text indentation. Fix the lines that don't follow this convention. While at it, add trailing comments to endif/endmenu statements for better readability. * 'riscv-kconfig_cleanups' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/palmer/linux: riscv: Kconfig.socs: Add comments riscv: Kconfig.erratas: Add comments riscv: Kconfig: Fix indentation and add comments
2 parents bb356dd + ca503bb commit 54f0f3b

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

arch/riscv/Kconfig

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,11 @@ config RISCV_ISA_C
352352
bool "Emit compressed instructions when building Linux"
353353
default y
354354
help
355-
Adds "C" to the ISA subsets that the toolchain is allowed to emit
356-
when building Linux, which results in compressed instructions in the
357-
Linux binary.
355+
Adds "C" to the ISA subsets that the toolchain is allowed to emit
356+
when building Linux, which results in compressed instructions in the
357+
Linux binary.
358358

359-
If you don't know what to do here, say Y.
359+
If you don't know what to do here, say Y.
360360

361361
config RISCV_ISA_SVPBMT
362362
bool "SVPBMT extension support"
@@ -385,7 +385,7 @@ config FPU
385385

386386
If you don't know what to do here, say Y.
387387

388-
endmenu
388+
endmenu # "Platform type"
389389

390390
menu "Kernel features"
391391

@@ -474,7 +474,7 @@ config COMPAT
474474

475475
If you want to execute 32-bit userspace applications, say Y.
476476

477-
endmenu
477+
endmenu # "Kernel features"
478478

479479
menu "Boot options"
480480

@@ -510,7 +510,6 @@ config CMDLINE_EXTEND
510510
cases where the provided arguments are insufficient and
511511
you don't want to or cannot modify them.
512512

513-
514513
config CMDLINE_FORCE
515514
bool "Always use the default kernel command string"
516515
help
@@ -602,7 +601,7 @@ config XIP_PHYS_ADDR
602601
be linked for and stored to. This address is dependent on your
603602
own flash usage.
604603

605-
endmenu
604+
endmenu # "Boot options"
606605

607606
config BUILTIN_DTB
608607
bool
@@ -613,12 +612,12 @@ menu "Power management options"
613612

614613
source "kernel/power/Kconfig"
615614

616-
endmenu
615+
endmenu # "Power management options"
617616

618617
menu "CPU Power Management"
619618

620619
source "drivers/cpuidle/Kconfig"
621620

622-
endmenu
621+
endmenu # "CPU Power Management"
623622

624623
source "arch/riscv/kvm/Kconfig"

arch/riscv/Kconfig.erratas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ config ERRATA_THEAD_PBMT
5555

5656
If you don't know what to do here, say "Y".
5757

58-
endmenu
58+
endmenu # "CPU errata selection"

arch/riscv/Kconfig.socs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ config SOC_CANAAN_K210_DTB_SOURCE
7878
for the DTS file that will be used to produce the DTB linked into the
7979
kernel.
8080

81-
endif
81+
endif # SOC_CANAAN
8282

83-
endmenu
83+
endmenu # "SoC selection"

0 commit comments

Comments
 (0)