Skip to contentSkip to conversation

x86: fix repeated words in comments

PATCH Applied Hemanth Selam 2 participants 2 messages Sep 7

Subsystems (5)
x86 x86 MM EDAC-core x86 entry code +1 more subsystems

v1 of 6 Applied 1/14 Latest is v6 →

lore
Share & tools
lore
#0 lore raw

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
---
 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
index a45e1125fc6c..e0cda8bfee77 100644
@@ -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
index 2235a7477436..da4db3c709e2 100644
@@ -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
index cb03f5a2b243..0f127a40f2f2 100644
@@ -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
index 14d9c7daf90f..213c5119d919 100644
@@ -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:
reviewer Acked-by on v1 13/14
#1 lore raw
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-5

---

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
index a45e1125fc6c..e0cda8bfee77 100644
@@ -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
index 2235a7477436..da4db3c709e2 100644
@@ -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
index cb03f5a2b243..0f127a40f2f2 100644
@@ -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
index 14d9c7daf90f..213c5119d919 100644
@@ -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: