Skip to contentSkip to conversation

MIPS: fix typos and repeated words in comments

PATCH In review Hemanth Selam 2 participants 4 messages Sep 4 – Sep 26

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover MIPS: 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):
MIPS: fix typos in comments
MIPS: fix repeated words in comments

 arch/mips/cavium-octeon/octeon-memcpy.S            | 2 +-
 arch/mips/include/asm/mach-loongson64/boot_param.h | 2 +-
 arch/mips/lib/memcpy.S                             | 2 +-
 arch/mips/n64/init.c                               | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.48.1
#1 lore raw

PATCH 1/2 MIPS: 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/mips/include/asm/mach-loongson64/boot_param.h | 2 +-
 arch/mips/n64/init.c                               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/mips/include/asm/mach-loongson64/boot_param.h +1 -1
index 3a11ce85762b..3e5c2b3a7f9b 100644
@@ -24,7 +24,7 @@
 struct efi_memory_map_loongson {
 	u16 vers;	/* version of efi_memory_map */
 	u32 nr_map;	/* number of memory_maps */
-	u32 mem_freq;	/* memory frequence */
+	u32 mem_freq;	/* memory frequency */
 	struct mem_map {
 		u32 node_id;	/* node_id which memory attached to */
 		u32 mem_type;	/* system memory, pci memory, pci io, etc. */
arch/mips/n64/init.c +1 -1
index 66ec28ab41f3..ddbd7d1224d3 100644
@@ -20,7 +20,7 @@
 #define IO_MEM_RESOURCE_END	0x1fffffffUL
 
 /*
- * System-specifc irq names for clarity
+ * System-specific irq names for clarity
  */
 #define MIPS_CPU_IRQ(x)		(MIPS_CPU_IRQ_BASE + (x))
 #define MIPS_SOFTINT0_IRQ	MIPS_CPU_IRQ(0)
Signature · 1 line
2.48.1
#2 lore raw

PATCH 2/2 MIPS: fix repeated words in comments

In reply to Hemanth Selam

Drop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.

Assisted-by Cursor:claude-opus-5
---
 arch/mips/cavium-octeon/octeon-memcpy.S | 2 +-
 arch/mips/lib/memcpy.S                  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/mips/cavium-octeon/octeon-memcpy.S +1 -1
index fef0c6de3fa1..fb27126afc56 100644
@@ -60,7 +60,7 @@
  *  3- (dst - src) == (dst_entry - src_entry),
  * The _entry suffix denotes values when __copy_user was called.
  *
- * (1) is set up up by uaccess.h and maintained by not writing AT in copy_user
+ * (1) is set up by uaccess.h and maintained by not writing AT in copy_user
  * (2) is met by incrementing src by the number of bytes copied
  * (3) is met by not doing loads between a pair of increments of dst and src
  *
arch/mips/lib/memcpy.S +1 -1
index 84f85aba6f4b..49408c0049f2 100644
@@ -79,7 +79,7 @@
  *  3- (dst - src) == (dst_entry - src_entry),
  * The _entry suffix denotes values when __copy_user was called.
  *
- * (1) is set up up by uaccess.h and maintained by not writing AT in copy_user
+ * (1) is set up by uaccess.h and maintained by not writing AT in copy_user
  * (2) is met by incrementing src by the number of bytes copied
  * (3) is met by not doing loads between a pair of increments of dst and src
  *
Signature · 1 line
2.48.1
#3 lore raw
In reply to Hemanth Selam
Quoted 26 lines · Hemanth Selam

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):
MIPS: fix typos in comments
MIPS: fix repeated words in comments

Quoted 5 lines
 arch/mips/cavium-octeon/octeon-memcpy.S            | 2 +-
 arch/mips/include/asm/mach-loongson64/boot_param.h | 2 +-
 arch/mips/lib/memcpy.S                             | 2 +-
 arch/mips/n64/init.c                               | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

series applied to mips-next

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]