Skip to contentSkip to conversation

sh: fix typos and repeated words in comments

PATCH New Hemanth Selam 1 participant 3 messages Sep 4 SuperH

lore
Share & tools
lore
#0 lore raw

cover sh: fix typos and repeated words in comments

This corrects 2 misspellings and repeated words in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.

Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.

The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.

Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.

Hemanth Selam (2):
sh: fix typos in comments
sh: fix repeated word 'with' in comment

 arch/sh/kernel/head_32.S         | 2 +-
 arch/sh/kernel/relocate_kernel.S | 2 +-
 arch/sh/mm/cache-sh4.c           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.48.1
#1 lore raw

PATCH 1/2 sh: fix typos in comments

Fix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 arch/sh/kernel/relocate_kernel.S | 2 +-
 arch/sh/mm/cache-sh4.c           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/sh/kernel/relocate_kernel.S +1 -1
index d9bf2b727b42..deda2f60a8f2 100644
@@ -3,7 +3,7 @@
  * relocate_kernel.S - put the kernel image in place to boot
  * 2005.9.17 [email protected]
  *
- * LANDISK/sh4 is supported. Maybe, SH archtecture works well.
+ * LANDISK/sh4 is supported. Maybe, SH architecture works well.
  *
  * 2009-03-18 Magnus Damm - Added Kexec Jump support
  */
arch/sh/mm/cache-sh4.c +1 -1
index 8bc9ce541c14..0c205923e88f 100644
@@ -354,7 +354,7 @@ static void __flush_cache_one(unsigned long addr, unsigned long phys,
 
 	/*
 	 * We know there will be >=1 iteration, so write as do-while to avoid
-	 * pointless nead-of-loop check for 0 iterations.
+	 * pointless head-of-loop check for 0 iterations.
 	 */
 	do {
 		ea = base_addr + PAGE_SIZE;
Signature · 1 line
2.48.1
#2 lore raw

PATCH 2/2 sh: fix repeated word 'with' in comment

In reply to Hemanth Selam

Drop the second 'with', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.

Assisted-by Cursor:claude-opus-5
---
 arch/sh/kernel/head_32.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sh/kernel/head_32.S +1 -1
index 0b91bb85d40a..95ca80b760cc 100644
@@ -106,7 +106,7 @@ ENTRY(_stext)
  * PMB entries. This clearing also deals with the fact that PMB entries
  * can persist across reboots. The PMB could have been left in any state
  * when the reboot occurred, so to be safe we clear all entries and start
- * with with a clean slate.
+ * with a clean slate.
  *
  * The uncached mapping is constructed using the smallest possible
  * mapping with a single unbufferable page. Only the kernel text needs to
Signature · 1 line
2.48.1