ARM: fix typos and repeated words in comments
Subsystems (2)
cover ARM: 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):
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(-)
Signature · 1 line
2.48.1
PATCH 1/2 ARM: 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/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(-)
arch/arm/boot/compressed/head.S +1 -1
@@ -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.
arch/arm/include/asm/uaccess.h +1 -1
@@ -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 )
arch/arm/kernel/cpuidle.c +1 -1
@@ -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. */
arch/arm/mm/cache-l2x0.c +1 -1
@@ -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 );
arch/arm/mm/context.c +2 -2
@@ -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. */
arch/arm/probes/decode.h +1 -1
@@ -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 */
arch/arm/probes/kprobes/opt-arm.c +2 -2
@@ -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. */
arch/arm/probes/kprobes/test-core.c +1 -1
@@ -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:
arch/arm/xen/hypercall.S +2 -2
@@ -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. *
Signature · 1 line
2.48.1
PATCH 2/2 ARM: fix repeated word 'there' in comment
In reply to Hemanth SelamDrop the second 'there', reported by checkpatch.pl as a possible repeated word. Only touches a comment, no code changes.
--- arch/arm/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mm/mmu.c +1 -1
@@ -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 )
Signature · 1 line
2.48.1