Skip to contentSkip to conversation

m68k: Kconfig: Style cleanups

PATCH In review Juerg Haefliger 2 participants 7 messages May 24, 2022 – Jul 6, 2022 m68k architecture

lore
Share & tools
lore
#0 lore raw

cover m68k: 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, replace single quotes with double quotes, add missing endif comments and squeeze multiple empty lines.

Juerg Haefliger (3):
m68k: Kconfig.cpu: Fix indentation and add endif comments
m68k: Kconfig.debug: Replace single quotes
m68k: Kconfig.machine: Add endif comment

 arch/m68k/Kconfig.cpu     | 7 +++----
 arch/m68k/Kconfig.debug   | 6 +++---
 arch/m68k/Kconfig.machine | 2 +-
 3 files changed, 7 insertions(+), 8 deletions(-)
Signature · 1 line
2.32.0
#1 lore raw

PATCH 1/3 m68k: Kconfig.cpu: Fix indentation and add endif 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 missing trailing endif comments and squeeze multiple empty lines.

---
 arch/m68k/Kconfig.cpu | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
arch/m68k/Kconfig.cpu +3 -4
index 16ea9a67723c..6f2ec6f07897 100644
@@ -155,7 +155,7 @@ config M520x
 	select COLDFIRE_PIT_TIMER
 	select HAVE_CACHE_SPLIT
 	help
-	   Freescale Coldfire 5207/5208 processor support.
+	  Freescale Coldfire 5207/5208 processor support.
 
 config M523x
 	bool "MCF523x"
@@ -322,7 +322,6 @@ config COLDFIRE_SLTIMERS
 
 endif # COLDFIRE
 
-
 comment "Processor Specific Options"
 
 config M68KFPU_EMU
@@ -522,7 +521,7 @@ config CACHE_BOTH
 	  Split the ColdFire CPU cache, and use half as an instruction cache
 	  and half as a data cache.
 endchoice
-endif
+endif # HAVE_CACHE_SPLIT
 
 if HAVE_CACHE_CB
 choice
@@ -539,4 +538,4 @@ config CACHE_COPYBACK
 	help
 	  The ColdFire CPU cache is set into Copy-back mode.
 endchoice
-endif
+endif # HAVE_CACHE_CB
Signature · 1 line
2.32.0
maintainer Reviewed-by on v1 1/3
#2 lore raw

Re: [PATCH 1/3] m68k: Kconfig.cpu: Fix indentation and add endif comments

Quoted 8 lines · 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 missing trailing endif comments and squeeze multiple empty lines.

i.e. will queue in the m68k for-v5.20 branch.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#3 lore raw

PATCH 2/3 m68k: Kconfig.debug: Replace single quotes

In reply to Juerg Haefliger

Replace single quotes in strings with double quotes to match the majority of the rest of the kernel's Kconfig files.

---
 arch/m68k/Kconfig.debug | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/m68k/Kconfig.debug +3 -3
index 11b306bdd788..465e28be0ce4 100644
@@ -1,11 +1,11 @@
 # SPDX-License-Identifier: GPL-2.0
 
 config BOOTPARAM
-	bool 'Compiled-in Kernel Boot Parameter'
+	bool "Compiled-in Kernel Boot Parameter"
 
 config BOOTPARAM_STRING
-	string 'Kernel Boot Parameter'
-	default 'console=ttyS0,19200'
+	string "Kernel Boot Parameter"
+	default "console=ttyS0,19200"
 	depends on BOOTPARAM
 
 config EARLY_PRINTK
Signature · 1 line
2.32.0
maintainer Reviewed-by on v1 2/3
#4 lore raw

Re: [PATCH 2/3] m68k: Kconfig.debug: Replace single quotes

Quoted 4 lines · Juerg Haefliger

Replace single quotes in strings with double quotes to match the majority of the rest of the kernel's Kconfig files.

i.e. will queue in the m68k for-v5.20 branch.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#5 lore raw

PATCH 3/3 m68k: Kconfig.machine: Add endif comment

In reply to Juerg Haefliger

Add missing trailing endif comment.

---
 arch/m68k/Kconfig.machine | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/Kconfig.machine +1 -1
index eeab4f3e6c19..623b6d89f51f 100644
@@ -474,4 +474,4 @@ config ROMKERNEL
 
 endchoice
 
-endif
+endif # !MMU || COLDFIRE
Signature · 1 line
2.32.0
maintainer Reviewed-by on v1 3/3
#6 lore raw

Re: [PATCH 3/3] m68k: Kconfig.machine: Add endif comment

Quoted 3 lines · Juerg Haefliger

Add missing trailing endif comment.

i.e. will queue in the m68k for-v5.20 branch.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds