x86: fix repeated words in comments
Subsystems (5)
PATCH 13/14 x86: fix repeated words in comments
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 <[email protected]>
--- arch/x86/entry/entry_64_compat.S | 2 +- arch/x86/kernel/cpu/mce/severity.c | 2 +- arch/x86/mm/pgtable.c | 4 ++-- arch/x86/realmode/rm/trampoline_64.S | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
arch/x86/entry/entry_64_compat.S +1 -1
@@ -266,7 +266,7 @@ SYM_INNER_LABEL(entry_SYSRETL_compat_unsafe_stack, SYM_L_GLOBAL) * The original userspace %rsp (RSP-ORIG_RAX(%rsp)) is stored * on the process stack which is not mapped to userspace and * not readable after we SWITCH_TO_USER_CR3. Delay the CR3 - * switch until after after the last reference to the process + * switch until after the last reference to the process * stack. * * %r8/%r9 are zeroed before the sysret, thus safe to clobber.
arch/x86/kernel/cpu/mce/severity.c +1 -1
@@ -280,7 +280,7 @@ static bool is_copy_from_user(struct pt_regs *regs)* check hit. * If we do have a good "m->cs" (or a faked one in the * case we were executing in VM86 mode) we can use it to -* distinguish an exception taken in user from from one +* distinguish an exception taken in user from one * taken in the kernel. */ static noinstr int error_context(struct mce *m, struct pt_regs *regs)
arch/x86/mm/pgtable.c +2 -2
@@ -402,7 +402,7 @@ int pmdp_set_access_flags(struct vm_area_struct *vma,set_pmd (pmdp, entry);/* * We had a write-protection fault here and changed the pmd -* to to more permissive. No need to flush the TLB for that, +* to more permissive. No need to flush the TLB for that, * #PF is architecturally guaranteed to do that and in the * worst-case we'll generate a spurious fault. */
@@ -422,7 +422,7 @@ int pudp_set_access_flags(struct vm_area_struct *vma, unsigned long address,set_pud (pudp, entry);/* * We had a write-protection fault here and changed the pud -* to to more permissive. No need to flush the TLB for that, +* to more permissive. No need to flush the TLB for that, * #PF is architecturally guaranteed to do that and in the * worst-case we'll generate a spurious fault. */
arch/x86/realmode/rm/trampoline_64.S +1 -1
@@ -148,7 +148,7 @@ SYM_CODE_START(startup_32) /* * Memory encryption is enabled but the SME enable bit for this - * CPU has has not been set. It is safe to set it, so do so. + * CPU has not been set. It is safe to set it, so do so. */ wrmsr .Ldone:
Quoted 72 lines · 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-5Signed-off-by Hemanth Selam <[email protected]>---
arch/x86/entry/entry_64_compat.S | 2 +- arch/x86/kernel/cpu/mce/severity.c | 2 +- arch/x86/mm/pgtable.c | 4 ++-- arch/x86/realmode/rm/trampoline_64.S | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)arch/x86/entry/entry_64_compat.S +1
-1@@ -266,7 +266,7 @@ SYM_INNER_LABEL(entry_SYSRETL_compat_unsafe_stack, SYM_L_GLOBAL) * The original userspace %rsp (RSP-ORIG_RAX(%rsp)) is stored * on the process stack which is not mapped to userspace and * not readable after we SWITCH_TO_USER_CR3. Delay the CR3 - * switch until after after the last reference to the process + * switch until after the last reference to the process * stack. * * %r8/%r9 are zeroed before the sysret, thus safe to clobber.arch/x86/kernel/cpu/mce/severity.c +1
-1@@ -280,7 +280,7 @@ static bool is_copy_from_user(struct pt_regs *regs)* check hit. * If we do have a good "m->cs" (or a faked one in the * case we were executing in VM86 mode) we can use it to -* distinguish an exception taken in user from from one +* distinguish an exception taken in user from one * taken in the kernel. */ static noinstr int error_context(struct mce *m, struct pt_regs *regs)arch/x86/mm/pgtable.c +2
-2@@ -402,7 +402,7 @@ int pmdp_set_access_flags(struct vm_area_struct *vma,set_pmd (pmdp, entry);/* * We had a write-protection fault here and changed the pmd -* to to more permissive. No need to flush the TLB for that, +* to more permissive. No need to flush the TLB for that, * #PF is architecturally guaranteed to do that and in the * worst-case we'll generate a spurious fault. */ @@ -422,7 +422,7 @@ int pudp_set_access_flags(struct vm_area_struct *vma, unsigned long address,set_pud (pudp, entry);/* * We had a write-protection fault here and changed the pud -* to to more permissive. No need to flush the TLB for that, +* to more permissive. No need to flush the TLB for that, * #PF is architecturally guaranteed to do that and in the * worst-case we'll generate a spurious fault. */ arch/x86/realmode/rm/trampoline_64.S +1
-1@@ -148,7 +148,7 @@ SYM_CODE_START(startup_32) /* * Memory encryption is enabled but the SME enable bit for this - * CPU has has not been set. It is safe to set it, so do so. + * CPU has not been set. It is safe to set it, so do so. */ wrmsr
Quoted 1 line
.Ldone:
Acked-by H. Peter Anvin <[email protected]>