* [PATCH 0/3] riscv: Kconfig: Style cleanups
@ 2022-05-20 12:02 ` Juerg Haefliger
0 siblings, 0 replies; 10+ messages in thread
From: Juerg Haefliger @ 2022-05-20 12:02 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, linux-riscv; +Cc: linux-kernel, Juerg Haefliger
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(-)
--
2.32.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 0/3] riscv: Kconfig: Style cleanups
@ 2022-05-20 12:02 ` Juerg Haefliger
0 siblings, 0 replies; 10+ messages in thread
From: Juerg Haefliger @ 2022-05-20 12:02 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, linux-riscv; +Cc: linux-kernel, Juerg Haefliger
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(-)
--
2.32.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/3] riscv: Kconfig: Fix indentation and add comments
2022-05-20 12:02 ` Juerg Haefliger
@ 2022-05-20 12:02 ` Juerg Haefliger
-1 siblings, 0 replies; 10+ messages in thread
From: Juerg Haefliger @ 2022-05-20 12:02 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, linux-riscv; +Cc: linux-kernel, Juerg Haefliger
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>
---
arch/riscv/Kconfig | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 00fd9c548f26..4507847d7c9c 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -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"
--
2.32.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 1/3] riscv: Kconfig: Fix indentation and add comments
@ 2022-05-20 12:02 ` Juerg Haefliger
0 siblings, 0 replies; 10+ messages in thread
From: Juerg Haefliger @ 2022-05-20 12:02 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, linux-riscv; +Cc: linux-kernel, Juerg Haefliger
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>
---
arch/riscv/Kconfig | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index 00fd9c548f26..4507847d7c9c 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -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"
--
2.32.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/3] riscv: Kconfig.erratas: Add comments
2022-05-20 12:02 ` Juerg Haefliger
@ 2022-05-20 12:02 ` Juerg Haefliger
-1 siblings, 0 replies; 10+ messages in thread
From: Juerg Haefliger @ 2022-05-20 12:02 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, linux-riscv; +Cc: linux-kernel, Juerg Haefliger
Add trailing comments to endmenu statements for better readability.
Signed-off-by: Juerg Haefliger <juergh@canonical.com>
---
arch/riscv/Kconfig.erratas | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/Kconfig.erratas b/arch/riscv/Kconfig.erratas
index 0aacd7052585..076005c5dad5 100644
--- a/arch/riscv/Kconfig.erratas
+++ b/arch/riscv/Kconfig.erratas
@@ -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"
--
2.32.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/3] riscv: Kconfig.erratas: Add comments
@ 2022-05-20 12:02 ` Juerg Haefliger
0 siblings, 0 replies; 10+ messages in thread
From: Juerg Haefliger @ 2022-05-20 12:02 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, linux-riscv; +Cc: linux-kernel, Juerg Haefliger
Add trailing comments to endmenu statements for better readability.
Signed-off-by: Juerg Haefliger <juergh@canonical.com>
---
arch/riscv/Kconfig.erratas | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/Kconfig.erratas b/arch/riscv/Kconfig.erratas
index 0aacd7052585..076005c5dad5 100644
--- a/arch/riscv/Kconfig.erratas
+++ b/arch/riscv/Kconfig.erratas
@@ -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"
--
2.32.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/3] riscv: Kconfig.socs: Add comments
2022-05-20 12:02 ` Juerg Haefliger
@ 2022-05-20 12:02 ` Juerg Haefliger
-1 siblings, 0 replies; 10+ messages in thread
From: Juerg Haefliger @ 2022-05-20 12:02 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, linux-riscv; +Cc: linux-kernel, Juerg Haefliger
Add trailing comments to endif and endmenu statements for better
readability.
Signed-off-by: Juerg Haefliger <juergh@canonical.com>
---
arch/riscv/Kconfig.socs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
index f6ef358d8a2c..c831609db249 100644
--- a/arch/riscv/Kconfig.socs
+++ b/arch/riscv/Kconfig.socs
@@ -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"
--
2.32.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/3] riscv: Kconfig.socs: Add comments
@ 2022-05-20 12:02 ` Juerg Haefliger
0 siblings, 0 replies; 10+ messages in thread
From: Juerg Haefliger @ 2022-05-20 12:02 UTC (permalink / raw)
To: paul.walmsley, palmer, aou, linux-riscv; +Cc: linux-kernel, Juerg Haefliger
Add trailing comments to endif and endmenu statements for better
readability.
Signed-off-by: Juerg Haefliger <juergh@canonical.com>
---
arch/riscv/Kconfig.socs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs
index f6ef358d8a2c..c831609db249 100644
--- a/arch/riscv/Kconfig.socs
+++ b/arch/riscv/Kconfig.socs
@@ -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"
--
2.32.0
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 0/3] riscv: Kconfig: Style cleanups
2022-05-20 12:02 ` Juerg Haefliger
@ 2022-07-01 4:07 ` Palmer Dabbelt
-1 siblings, 0 replies; 10+ messages in thread
From: Palmer Dabbelt @ 2022-07-01 4:07 UTC (permalink / raw)
To: juerg.haefliger; +Cc: Paul Walmsley, aou, linux-riscv, linux-kernel, juergh
On Fri, 20 May 2022 05:02:29 PDT (-0700), juerg.haefliger@canonical.com wrote:
> 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(-)
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.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/3] riscv: Kconfig: Style cleanups
@ 2022-07-01 4:07 ` Palmer Dabbelt
0 siblings, 0 replies; 10+ messages in thread
From: Palmer Dabbelt @ 2022-07-01 4:07 UTC (permalink / raw)
To: juerg.haefliger; +Cc: Paul Walmsley, aou, linux-riscv, linux-kernel, juergh
On Fri, 20 May 2022 05:02:29 PDT (-0700), juerg.haefliger@canonical.com wrote:
> 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(-)
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.
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-07-01 4:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 12:02 [PATCH 0/3] riscv: Kconfig: Style cleanups Juerg Haefliger
2022-05-20 12:02 ` Juerg Haefliger
2022-05-20 12:02 ` [PATCH 1/3] riscv: Kconfig: Fix indentation and add comments Juerg Haefliger
2022-05-20 12:02 ` Juerg Haefliger
2022-05-20 12:02 ` [PATCH 2/3] riscv: Kconfig.erratas: Add comments Juerg Haefliger
2022-05-20 12:02 ` Juerg Haefliger
2022-05-20 12:02 ` [PATCH 3/3] riscv: Kconfig.socs: " Juerg Haefliger
2022-05-20 12:02 ` Juerg Haefliger
2022-07-01 4:07 ` [PATCH 0/3] riscv: Kconfig: Style cleanups Palmer Dabbelt
2022-07-01 4:07 ` Palmer Dabbelt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.