Skip to content

Commit

Permalink
riscv: Kconfig: Style cleanups
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Palmer Dabbelt committed Jul 1, 2022
2 parents bb356dd + ca503bb commit 54f0f3b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
19 changes: 9 additions & 10 deletions arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,11 @@ config RISCV_ISA_C
bool "Emit compressed instructions when building Linux"
default y
help
Adds "C" to the ISA subsets that the toolchain is allowed to emit
when building Linux, which results in compressed instructions in the
Linux binary.
Adds "C" to the ISA subsets that the toolchain is allowed to emit
when building Linux, which results in compressed instructions in the
Linux binary.

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

config RISCV_ISA_SVPBMT
bool "SVPBMT extension support"
Expand Down Expand Up @@ -385,7 +385,7 @@ config FPU

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

endmenu
endmenu # "Platform type"

menu "Kernel features"

Expand Down Expand Up @@ -474,7 +474,7 @@ config COMPAT

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

endmenu
endmenu # "Kernel features"

menu "Boot options"

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


config CMDLINE_FORCE
bool "Always use the default kernel command string"
help
Expand Down Expand Up @@ -602,7 +601,7 @@ config XIP_PHYS_ADDR
be linked for and stored to. This address is dependent on your
own flash usage.

endmenu
endmenu # "Boot options"

config BUILTIN_DTB
bool
Expand All @@ -613,12 +612,12 @@ menu "Power management options"

source "kernel/power/Kconfig"

endmenu
endmenu # "Power management options"

menu "CPU Power Management"

source "drivers/cpuidle/Kconfig"

endmenu
endmenu # "CPU Power Management"

source "arch/riscv/kvm/Kconfig"
2 changes: 1 addition & 1 deletion arch/riscv/Kconfig.erratas
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ config ERRATA_THEAD_PBMT

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

endmenu
endmenu # "CPU errata selection"
4 changes: 2 additions & 2 deletions arch/riscv/Kconfig.socs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ config SOC_CANAAN_K210_DTB_SOURCE
for the DTS file that will be used to produce the DTB linked into the
kernel.

endif
endif # SOC_CANAAN

endmenu
endmenu # "SoC selection"

0 comments on commit 54f0f3b

Please sign in to comment.