riscv: Kconfig: Style cleanups
cover 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.
Juerg Haefliger (3):
riscv: Kconfig: Fix indentation and add comments
riscv: Kconfig.erratas: Add comments
riscv: Kconfig.socs: Add comments
arch/riscv/Kconfig | 19 +++++++++---------- arch/riscv/Kconfig.erratas | 2 +- arch/riscv/Kconfig.socs | 4 ++-- 3 files changed, 12 insertions(+), 13 deletions(-)
Signature · 7 lines
2.32.0 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 1/3 riscv: Kconfig: Fix indentation and add comments
The convention for indentation seems to be a single tab. Help text is further indented by an additional two whitespaces. Fix the lines that violate these rules.
While add it, add trailing comments to endmenu statements for better readability.
--- arch/riscv/Kconfig | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)
arch/riscv/Kconfig +9 -10
@@ -328,11 +328,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 FPU bool "FPU support"
@@ -343,7 +343,7 @@ config FPU If you don't know what to do here, say Y. -endmenu +endmenu # "Platform type" menu "Kernel features"
@@ -394,7 +394,7 @@ config CRASH_DUMP For more details see Documentation/admin-guide/kdump/kdump.rst -endmenu +endmenu # "Kernel features" menu "Boot options"
@@ -430,7 +430,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
@@ -522,7 +521,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
@@ -533,12 +532,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"
Signature · 7 lines
2.32.0 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 2/3 riscv: Kconfig.erratas: Add comments
In reply to Juerg HaefligerAdd trailing comments to endmenu statements for better readability.
--- arch/riscv/Kconfig.erratas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/Kconfig.erratas +1 -1
@@ -42,4 +42,4 @@ config ERRATA_SIFIVE_CIP_1200 If you don't know what to do here, say "Y". -endmenu +endmenu # "CPU errata selection"
Signature · 7 lines
2.32.0 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
PATCH 3/3 riscv: Kconfig.socs: Add comments
In reply to Juerg HaefligerAdd trailing comments to endif and endmenu statements for better readability.
--- arch/riscv/Kconfig.socs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/riscv/Kconfig.socs +2 -2
@@ -79,6 +79,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"
Signature · 7 lines
2.32.0 _______________________________________________ linux-riscv mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-riscv
Palmer Dabbelt
maintainerQuoted 13 lines · On Fri, 20 May 2022 05:02:29 PDT (-0700), [email protected] wrote:
The majority of the
Kconfigfiles 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.Juerg Haefliger (3):
riscv:Kconfig: Fix indentation and add comments
riscv:Kconfig.erratas: Add comments
riscv:Kconfig.socs: Add comments
Quoted 4 lines
arch/riscv/Kconfig | 19 +++++++++---------- arch/riscv/Kconfig.erratas | 2 +- arch/riscv/Kconfig.socs | 4 ++-- 3 files changed, 12 insertions(+), 13 deletions(-)
Thanks, this is on for-next. There were a few merge conflicts, everything looks pretty straight-forward but let me know if there were any issues.