sparc: fix typos and repeated words in comments
cover sparc: 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):
sparc: fix typos in comments
sparc: fix repeated words in comments
arch/sparc/include/asm/asm-prototypes.h | 2 +- arch/sparc/include/asm/bbc.h | 2 +- arch/sparc/include/asm/hypervisor.h | 10 +++++----- arch/sparc/kernel/head_64.S | 4 ++-- arch/sparc/kernel/process_32.c | 2 +- arch/sparc/kernel/process_64.c | 2 +- arch/sparc/kernel/traps_64.c | 4 ++-- arch/sparc/mm/init_64.c | 2 +- arch/sparc/prom/tree_32.c | 2 +- 9 files changed, 15 insertions(+), 15 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 sparc: 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.
--- arch/sparc/include/asm/asm-prototypes.h | 2 +- arch/sparc/include/asm/bbc.h | 2 +- arch/sparc/include/asm/hypervisor.h | 10 +++++----- arch/sparc/kernel/head_64.S | 2 +- arch/sparc/kernel/process_32.c | 2 +- arch/sparc/kernel/process_64.c | 2 +- arch/sparc/kernel/traps_64.c | 2 +- arch/sparc/mm/init_64.c | 2 +- arch/sparc/prom/tree_32.c | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-)
arch/sparc/include/asm/asm-prototypes.h +1 -1
@@ -18,7 +18,7 @@void *__memscan_zero (void *,size_t );void *__memscan_generic (void *,int ,size_t );void *__bzero (void *,size_t ); -void VISenter (void );/* Dummy prototype to supress warning */ +void VISenter (void );/* Dummy prototype to suppress warning */ #undef memcpy#undef memsetvoid *memcpy (void *dest,const void *src,size_t n);
arch/sparc/include/asm/bbc.h +1 -1
@@ -87,7 +87,7 @@/* Watchdog Action register. When the watchdog device timer expires * a line is enabled to the BBC. The action BBC takes when this line -* is asserted can be controlled by this regiser. +* is asserted can be controlled by this register. */ #define BBC_WDACTION_RST 0x01/* When set, watchdog causes system reset. * When clear, BBC ignores watchdog signal.
arch/sparc/include/asm/hypervisor.h +5 -5
@@ -172,7 +172,7 @@ void sun4v_mach_sir(void);* Service Processor, and/or automatically restarting the gues. * * The 'timeout' parameter is specified in milliseconds, however the -* implementated granularity is given by the 'watchdog-resolution' +* implemented granularity is given by the 'watchdog-resolution' * property in the 'platform' node of the guest's machine description. * The largest allowed timeout value is specified by the * 'watchdog-max-timeout' property of the 'platform' node.
@@ -1223,7 +1223,7 @@ unsigned long sun4v_con_write(unsigned long buffer,* * This allows the guest to report its soft state to the hypervisor. There * are two primary components to this state. The first part states whether -* the guest software is running or not. The second containts optional +* the guest software is running or not. The second contains optional * details specific to the software. * * The software state argument is defined below in HV_SOFT_STATE_*, and
@@ -1585,7 +1585,7 @@ struct hv_trap_trace_entry {* "interrupts" property or "interrupt-map" property * in the OBP device tree for that device. * -* sysino System interrupt number. A 64-bit unsigned interger +* sysino System interrupt number. A 64-bit unsigned integer * representing a unique interrupt within a virtual * machine. *
@@ -2925,7 +2925,7 @@ unsigned long sun4v_vintr_set_target(unsigned long dev_handle,* endpoint defined by the given channel ID. The tail offset specified * must be aligned on a 64 byte boundary, and calculated so as to increase * the number of pending entries on the transmit queue. Any attempt to -* decrease the number of pending transmit queue entires is considered +* decrease the number of pending transmit queue entries is considered * an invalid tail offset and will result in an EINVAL error. * * Since the tail of the transmit queue may not be moved backwards, the
@@ -3017,7 +3017,7 @@ unsigned long sun4v_vintr_set_target(unsigned long dev_handle,* endpoint defined by the given channel ID. The head offset specified * must be aligned on a 64 byte boundary, and calculated so as to decrease * the number of pending entries on the receive queue. Any attempt to -* increase the number of pending receive queue entires is considered +* increase the number of pending receive queue entries is considered * an invalid head offset and will result in an EINVAL error. * * The receive queue may be flushed by setting the head offset equal
arch/sparc/kernel/head_64.S +1 -1
@@ -927,7 +927,7 @@ swapper_4m_tsb: /* Some care needs to be exercised if you try to move the * location of the trap table relative to other things. For * one thing there are br* instructions in some of the - * trap table entires which branch back to code in ktlb.S + * trap table entries which branch back to code in ktlb.S * Those instructions can only handle a signed 16-bit * displacement. *
arch/sparc/kernel/process_32.c +1 -1
@@ -244,7 +244,7 @@ clone_stackframe(struct sparc_stackf __user *dst,/* Copy a Sparc thread. The fork() return value conventions * under SunOS are nothing short of bletcherous: -* Parent --> %o0 == childs pid, %o1 == 0 +* Parent --> %o0 == children pid, %o1 == 0 * Child --> %o0 == parents pid, %o1 == 1 * * clone3() - Uses regular kernel return value conventions
arch/sparc/kernel/process_64.c +1 -1
@@ -562,7 +562,7 @@ void fault_in_user_windows(struct pt_regs *regs)/* Copy a Sparc thread. The fork() return value conventions * under SunOS are nothing short of bletcherous: -* Parent --> %o0 == childs pid, %o1 == 0 +* Parent --> %o0 == children pid, %o1 == 0 * Child --> %o0 == parents pid, %o1 == 1 * * clone3() - Uses regular kernel return value conventions
arch/sparc/kernel/traps_64.c +1 -1
@@ -1142,7 +1142,7 @@ static unsigned char cheetah_mtag_syntab[] = { NONE, NONE }; -/* Return the highest priority error conditon mentioned. */ +/* Return the highest priority error condition mentioned. */ static inline unsigned long cheetah_get_hipri (unsigned long afsr) {unsigned long tmp =0 ;
arch/sparc/mm/init_64.c +1 -1
@@ -1291,7 +1291,7 @@ static int __init grab_mblocks(struct mdesc_handle *md) "address-congruence-offset", NULL);/* The address-congruence-offset property is optional. -* Explicity zero it be identifty this. +* Explicitly zero it be identifty this. */ if (val) m->offset = *val;
arch/sparc/prom/tree_32.c +1 -1
@@ -200,7 +200,7 @@ phandle prom_searchsiblings(phandle node_start, char *nodename) }EXPORT_SYMBOL (prom_searchsiblings); -/* Interal version of nextprop that does not alter return values. */ +/* Internal version of nextprop that does not alter return values. */ static char *__prom_nextprop (phandle node,char * oprop) {unsigned long flags;
Signature · 1 line
2.48.1
PATCH 2/2 sparc: fix repeated words in comments
In reply to Hemanth SelamDrop words accidentally written twice, reported by checkpatch.pl as a possible repeated word. Only touches comments, no code changes.
--- arch/sparc/kernel/head_64.S | 2 +- arch/sparc/kernel/traps_64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/sparc/kernel/head_64.S +1 -1
@@ -35,7 +35,7 @@ #include <asm/sfafsr.h> #include <asm/unistd.h> -/* This section from from _start to sparc64_boot_end should fit into +/* This section from _start to sparc64_boot_end should fit into * 0x0000000000404000 to 0x0000000000408000. */ .text
arch/sparc/kernel/traps_64.c +1 -1
@@ -912,7 +912,7 @@ void __init cheetah_ecache_flush_init(void)memset (cheetah_error_log,0 ,PAGE_SIZE << order);/* Mark all AFSRs as invalid so that the trap handler will -* log new new information there. +* log new information there. */ for (i =0 ; i <2 *NR_CPUS ; i++) cheetah_error_log[i].afsr =CHAFSR_INVALID ;
Signature · 1 line
2.48.1