All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] sparc: fix typos in comments
       [not found] <20260904111244.24636-1-hemanth.selam@gmail.com>
@ 2026-09-04 11:12 ` Hemanth Selam
  2026-09-04 11:12 ` [PATCH 2/2] sparc: fix repeated words " Hemanth Selam
  1 sibling, 0 replies; 2+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:12 UTC (permalink / raw)
  To: David S. Miller, Andreas Larsson; +Cc: linux-kernel, sparclinux

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
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 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(-)

diff --git a/arch/sparc/include/asm/asm-prototypes.h b/arch/sparc/include/asm/asm-prototypes.h
index a39a24c53216..51d5d218b42a 100644
--- a/arch/sparc/include/asm/asm-prototypes.h
+++ b/arch/sparc/include/asm/asm-prototypes.h
@@ -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 memset
 void *memcpy(void *dest, const void *src, size_t n);
diff --git a/arch/sparc/include/asm/bbc.h b/arch/sparc/include/asm/bbc.h
index 00a4f116144d..e82b59e1ae6f 100644
--- a/arch/sparc/include/asm/bbc.h
+++ b/arch/sparc/include/asm/bbc.h
@@ -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.
diff --git a/arch/sparc/include/asm/hypervisor.h b/arch/sparc/include/asm/hypervisor.h
index 94ac56d43746..1c5497189245 100644
--- a/arch/sparc/include/asm/hypervisor.h
+++ b/arch/sparc/include/asm/hypervisor.h
@@ -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
diff --git a/arch/sparc/kernel/head_64.S b/arch/sparc/kernel/head_64.S
index cf0549134234..b8db806ad760 100644
--- a/arch/sparc/kernel/head_64.S
+++ b/arch/sparc/kernel/head_64.S
@@ -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.
 	 *
diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c
index dd8c6c02b0f1..d430ed632140 100644
--- a/arch/sparc/kernel/process_32.c
+++ b/arch/sparc/kernel/process_32.c
@@ -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
diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c
index e889da8e4835..a35100c608c5 100644
--- a/arch/sparc/kernel/process_64.c
+++ b/arch/sparc/kernel/process_64.c
@@ -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
diff --git a/arch/sparc/kernel/traps_64.c b/arch/sparc/kernel/traps_64.c
index 28cb0d66ab40..a69bc0dee6a6 100644
--- a/arch/sparc/kernel/traps_64.c
+++ b/arch/sparc/kernel/traps_64.c
@@ -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;
diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c
index 103db4683b16..43a774654ade 100644
--- a/arch/sparc/mm/init_64.c
+++ b/arch/sparc/mm/init_64.c
@@ -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;
diff --git a/arch/sparc/prom/tree_32.c b/arch/sparc/prom/tree_32.c
index 0fed89375b74..422a69437447 100644
--- a/arch/sparc/prom/tree_32.c
+++ b/arch/sparc/prom/tree_32.c
@@ -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;
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] sparc: fix repeated words in comments
       [not found] <20260904111244.24636-1-hemanth.selam@gmail.com>
  2026-09-04 11:12 ` [PATCH 1/2] sparc: fix typos in comments Hemanth Selam
@ 2026-09-04 11:12 ` Hemanth Selam
  1 sibling, 0 replies; 2+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:12 UTC (permalink / raw)
  To: David S. Miller, Andreas Larsson; +Cc: linux-kernel, sparclinux

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
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 arch/sparc/kernel/head_64.S  | 2 +-
 arch/sparc/kernel/traps_64.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/sparc/kernel/head_64.S b/arch/sparc/kernel/head_64.S
index b8db806ad760..dceec1f00c2c 100644
--- a/arch/sparc/kernel/head_64.S
+++ b/arch/sparc/kernel/head_64.S
@@ -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
diff --git a/arch/sparc/kernel/traps_64.c b/arch/sparc/kernel/traps_64.c
index a69bc0dee6a6..0127e4739dc8 100644
--- a/arch/sparc/kernel/traps_64.c
+++ b/arch/sparc/kernel/traps_64.c
@@ -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;
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-04 11:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260904111244.24636-1-hemanth.selam@gmail.com>
2026-09-04 11:12 ` [PATCH 1/2] sparc: fix typos in comments Hemanth Selam
2026-09-04 11:12 ` [PATCH 2/2] sparc: fix repeated words " Hemanth Selam

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.