Skip to content

Commit

Permalink
riscv: Kconfig: Fix indentation and add comments
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Juerg Haefliger <juergh@canonical.com>
Link: https://lore.kernel.org/r/20220520120232.148310-2-juergh@canonical.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
  • Loading branch information
Juerg Haefliger authored and Palmer Dabbelt committed Jun 30, 2022
1 parent 3123109 commit 2f66a3d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -343,7 +343,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 @@ -394,7 +394,7 @@ config CRASH_DUMP

For more details see Documentation/admin-guide/kdump/kdump.rst

endmenu
endmenu # "Kernel features"

menu "Boot options"

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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"

0 comments on commit 2f66a3d

Please sign in to comment.