Skip to contentSkip to conversation

mm/pgtable: Fix typo in comments

PATCH New Zhang Jiaming 1 participant 1 message Jul 1, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/pgtable: Fix typo in comments

There are 2 typo (writeable) in init.c and pgtable.c's comments. Fix it.

---
 arch/x86/mm/init.c    | 2 +-
 arch/x86/mm/pgtable.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/x86/mm/init.c +1 -1
index d8cfce221275..e027239406d5 100644
@@ -893,7 +893,7 @@ void free_init_pages(const char *what, unsigned long begin, unsigned long end)
 		/*
 		 * We just marked the kernel text read only above, now that
 		 * we are going to free part of that, we need to make that
-		 * writeable and non-executable first.
+		 * writable and non-executable first.
 		 */
 		set_memory_nx(begin, (end - begin) >> PAGE_SHIFT);
 		set_memory_rw(begin, (end - begin) >> PAGE_SHIFT);
arch/x86/mm/pgtable.c +1 -1
index a932d7712d85..95f930104deb 100644
@@ -480,7 +480,7 @@ void pgd_free(struct mm_struct *mm, pgd_t *pgd)
  * Used to set accessed or dirty bits in the page table entries
  * on other architectures. On x86, the accessed and dirty bits
  * are tracked by hardware. However, do_wp_page calls this function
- * to also make the pte writeable at the same time the dirty bit is
+ * to also make the pte writable at the same time the dirty bit is
  * set. In that case we do actually need to write the PTE.
  */
 int ptep_set_access_flags(struct vm_area_struct *vma,
Signature · 1 line
2.25.1