* [PATCH 0/2] ARM: fix typos and repeated words in comments
@ 2026-09-04 11:25 Hemanth Selam
2026-09-04 11:25 ` [PATCH 1/2] ARM: fix typos " Hemanth Selam
2026-09-04 11:25 ` [PATCH 2/2] ARM: fix repeated word 'there' in comment Hemanth Selam
0 siblings, 2 replies; 3+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:25 UTC (permalink / raw)
Cc: linux-kernel
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):
ARM: fix typos in comments
ARM: fix repeated word 'there' in comment
arch/arm/boot/compressed/head.S | 2 +-
arch/arm/include/asm/uaccess.h | 2 +-
arch/arm/kernel/cpuidle.c | 2 +-
arch/arm/mm/cache-l2x0.c | 2 +-
arch/arm/mm/context.c | 4 ++--
arch/arm/mm/mmu.c | 2 +-
arch/arm/probes/decode.h | 2 +-
arch/arm/probes/kprobes/opt-arm.c | 4 ++--
arch/arm/probes/kprobes/test-core.c | 2 +-
arch/arm/xen/hypercall.S | 4 ++--
10 files changed, 13 insertions(+), 13 deletions(-)
--
2.48.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] ARM: fix typos in comments
2026-09-04 11:25 [PATCH 0/2] ARM: fix typos and repeated words in comments Hemanth Selam
@ 2026-09-04 11:25 ` Hemanth Selam
2026-09-04 11:25 ` [PATCH 2/2] ARM: fix repeated word 'there' in comment Hemanth Selam
1 sibling, 0 replies; 3+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:25 UTC (permalink / raw)
To: Russell King, Stefano Stabellini
Cc: linux-kernel, linux-arm-kernel, xen-devel
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/arm/boot/compressed/head.S | 2 +-
arch/arm/include/asm/uaccess.h | 2 +-
arch/arm/kernel/cpuidle.c | 2 +-
arch/arm/mm/cache-l2x0.c | 2 +-
arch/arm/mm/context.c | 4 ++--
arch/arm/probes/decode.h | 2 +-
arch/arm/probes/kprobes/opt-arm.c | 4 ++--
arch/arm/probes/kprobes/test-core.c | 2 +-
arch/arm/xen/hypercall.S | 4 ++--
9 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
index 9f406e9c0ea6..e117f2b4dea9 100644
--- a/arch/arm/boot/compressed/head.S
+++ b/arch/arm/boot/compressed/head.S
@@ -955,7 +955,7 @@ call_cache_fn: adr r12, proc_types
/*
* On v7-M the processor id is located in the V7M_SCB_CPUID
* register, but as cache handling is IMPLEMENTATION DEFINED on
- * v7-M (if existant at all) we just return early here.
+ * v7-M (if existent at all) we just return early here.
* If V7M_SCB_CPUID were used the cpu ID functions (i.e.
* __armv7_mmu_cache_{on,off,flush}) would be selected which
* use cp15 registers that are not implemented on v7-M.
diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h
index 1593cf3b9800..9805001f9d72 100644
--- a/arch/arm/include/asm/uaccess.h
+++ b/arch/arm/include/asm/uaccess.h
@@ -24,7 +24,7 @@
* These two functions allow hooking accesses to userspace to increase
* system integrity by ensuring that the kernel can not inadvertantly
* perform such accesses (eg, via list poison values) which could then
- * be exploited for priviledge escalation.
+ * be exploited for privilege escalation.
*/
#if defined(CONFIG_CPU_SW_DOMAIN_PAN)
diff --git a/arch/arm/kernel/cpuidle.c b/arch/arm/kernel/cpuidle.c
index fba1f8bb03b5..784457ac7b2b 100644
--- a/arch/arm/kernel/cpuidle.c
+++ b/arch/arm/kernel/cpuidle.c
@@ -79,7 +79,7 @@ static const struct cpuidle_ops *__init arm_cpuidle_get_ops(const char *method)
* cpuidle_ops are tagged __initconst and will be unloaded after the init
* process.
*
- * Return 0 on sucess, -ENOENT if no 'enable-method' is defined, -EOPNOTSUPP if
+ * Return 0 on success, -ENOENT if no 'enable-method' is defined, -EOPNOTSUPP if
* no cpuidle_ops is registered for the 'enable-method', or if either init or
* suspend callback isn't defined.
*/
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index 470867160076..0eaaf99d3d11 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -1381,7 +1381,7 @@ static void aurora_pa_range(unsigned long start, unsigned long end,
unsigned long flags;
/*
- * round start and end adresses up to cache line size
+ * round start and end addresses up to cache line size
*/
start &= ~(CACHE_LINE_SIZE - 1);
end = ALIGN(end, CACHE_LINE_SIZE);
diff --git a/arch/arm/mm/context.c b/arch/arm/mm/context.c
index 4204ffa2d104..95d477cab0f5 100644
--- a/arch/arm/mm/context.c
+++ b/arch/arm/mm/context.c
@@ -76,7 +76,7 @@ void a15_erratum_get_cpumask(int this_cpu, struct mm_struct *mm,
#ifdef CONFIG_ARM_LPAE
/*
- * With LPAE, the ASID and page tables are updated atomicly, so there is
+ * With LPAE, the ASID and page tables are updated atomically, so there is
* no need for a reserved set of tables (the active ASID tracking prevents
* any issues across a rollover).
*/
@@ -243,7 +243,7 @@ void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk)
check_vmalloc_seq(mm);
/*
- * We cannot update the pgd and the ASID atomicly with classic
+ * We cannot update the pgd and the ASID atomically with classic
* MMU, so switch exclusively to global mappings to avoid
* speculative page table walking with the wrong TTBR.
*/
diff --git a/arch/arm/probes/decode.h b/arch/arm/probes/decode.h
index facc889d05ee..b09c44ba1030 100644
--- a/arch/arm/probes/decode.h
+++ b/arch/arm/probes/decode.h
@@ -250,7 +250,7 @@ enum decode_reg_type {
REG_TYPE_NOPCWB, /* No PC if load/store write-back flag also set */
/* The following types are used when the encoding for PC indicates
- * another instruction form. This distiction only matters for test
+ * another instruction form. This distinction only matters for test
* case coverage checks.
*/
REG_TYPE_NOPCX, /* Register must not be PC */
diff --git a/arch/arm/probes/kprobes/opt-arm.c b/arch/arm/probes/kprobes/opt-arm.c
index 966c6042c5ad..a3aed8c01c98 100644
--- a/arch/arm/probes/kprobes/opt-arm.c
+++ b/arch/arm/probes/kprobes/opt-arm.c
@@ -210,11 +210,11 @@ int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *or
*
* So the maximum forward branch should be:
* (0x007fffff << 2) = 0x01fffffc = 0x1fffffc
- * The maximum backword branch should be:
+ * The maximum backward branch should be:
* (0xff800000 << 2) = 0xfe000000 = -0x2000000
*
* We can simply check (rel & 0xfe000003):
- * if rel is positive, (rel & 0xfe000000) shoule be 0
+ * if rel is positive, (rel & 0xfe000000) should be 0
* if rel is negitive, (rel & 0xfe000000) should be 0xfe000000
* the last '3' is used for alignment checking.
*/
diff --git a/arch/arm/probes/kprobes/test-core.c b/arch/arm/probes/kprobes/test-core.c
index 2de28088dac8..531fec3621b8 100644
--- a/arch/arm/probes/kprobes/test-core.c
+++ b/arch/arm/probes/kprobes/test-core.c
@@ -125,7 +125,7 @@
* .byte ARG_TYPE_END
* .byte TEST_ISA @ flags, including ISA being tested
* .short 50f-0f @ offset of 'test_before'
- * .short 2f-0f @ offset of 'test_after2' (if relevent)
+ * .short 2f-0f @ offset of 'test_after2' (if relevant)
* .short 99f-0f @ offset of 'test_done'
* @ start of test case code...
* 0:
diff --git a/arch/arm/xen/hypercall.S b/arch/arm/xen/hypercall.S
index f794dac9859a..b8b6192e310e 100644
--- a/arch/arm/xen/hypercall.S
+++ b/arch/arm/xen/hypercall.S
@@ -32,9 +32,9 @@
/*
* The Xen hypercall calling convention is very similar to the ARM
- * procedure calling convention: the first paramter is passed in r0, the
+ * procedure calling convention: the first parameter is passed in r0, the
* second in r1, the third in r2 and the fourth in r3. Considering that
- * Xen hypercalls have 5 arguments at most, the fifth paramter is passed
+ * Xen hypercalls have 5 arguments at most, the fifth parameter is passed
* in r4, differently from the procedure calling convention of using the
* stack for that case.
*
--
2.48.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] ARM: fix repeated word 'there' in comment
2026-09-04 11:25 [PATCH 0/2] ARM: fix typos and repeated words in comments Hemanth Selam
2026-09-04 11:25 ` [PATCH 1/2] ARM: fix typos " Hemanth Selam
@ 2026-09-04 11:25 ` Hemanth Selam
1 sibling, 0 replies; 3+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:25 UTC (permalink / raw)
To: Russell King; +Cc: linux-kernel, linux-arm-kernel
Drop the second 'there', reported by checkpatch.pl as a possible repeated
word. Only touches a comment, no code changes.
Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
arch/arm/mm/mmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index 23b87b5ef7f1..2a6b6e29c118 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -1288,7 +1288,7 @@ static __init void prepare_page_table(void)
/*
* Skip over the KASan shadow area. KASAN_SHADOW_END is sometimes
* equal to MODULES_VADDR and then we exit the pmd clearing. If we
- * are using a thumb-compiled kernel, there there will be 8MB more
+ * are using a thumb-compiled kernel, there will be 8MB more
* to clear as KASan always offset to 16 MB below MODULES_VADDR.
*/
for (addr = KASAN_SHADOW_END; addr < MODULES_VADDR; addr += PMD_SIZE)
--
2.48.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-09-04 11:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 11:25 [PATCH 0/2] ARM: fix typos and repeated words in comments Hemanth Selam
2026-09-04 11:25 ` [PATCH 1/2] ARM: fix typos " Hemanth Selam
2026-09-04 11:25 ` [PATCH 2/2] ARM: fix repeated word 'there' in comment Hemanth Selam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®