[PATCH] x86/mm: Fix double word in comments

Bo Liu posted 1 patch 2 years, 7 months ago
arch/x86/mm/pat/set_memory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] x86/mm: Fix double word in comments
Posted by Bo Liu 2 years, 7 months ago
Remove the repeated word "the" in comments.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 arch/x86/mm/pat/set_memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c
index fc627acfe40e..4cc94805050e 100644
--- a/arch/x86/mm/pat/set_memory.c
+++ b/arch/x86/mm/pat/set_memory.c
@@ -231,7 +231,7 @@ within_inclusive(unsigned long addr, unsigned long start, unsigned long end)
  * points to #2, but almost all physical-to-virtual translations point to #1.
  *
  * This is so that we can have both a directmap of all physical memory *and*
- * take full advantage of the the limited (s32) immediate addressing range (2G)
+ * take full advantage of the limited (s32) immediate addressing range (2G)
  * of x86_64.
  *
  * See Documentation/arch/x86/x86_64/mm.rst for more detail.
-- 
2.27.0
Re: [PATCH] x86/mm: Fix double word in comments
Posted by Bagas Sanjaya 2 years, 7 months ago
On Thu, May 04, 2023 at 04:54:46AM -0400, Bo Liu wrote:
> Remove the repeated word "the" in comments.
                                    "... in highmap_start_pfn() comment".

>   * This is so that we can have both a directmap of all physical memory *and*
> - * take full advantage of the the limited (s32) immediate addressing range (2G)
> + * take full advantage of the limited (s32) immediate addressing range (2G)

The diff LGTM, thanks!

-- 
An old man doll... just what I always wanted! - Clara
[tip: x86/cleanups] x86/mm: Remove repeated word in comments
Posted by tip-bot2 for Bo Liu 2 years, 6 months ago
The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     7e980867ced0037a65f588971b89769857b77aab
Gitweb:        https://git.kernel.org/tip/7e980867ced0037a65f588971b89769857b77aab
Author:        Bo Liu <liubo03@inspur.com>
AuthorDate:    Thu, 04 May 2023 04:54:46 -04:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Wed, 07 Jun 2023 12:47:34 +02:00

x86/mm: Remove repeated word in comments

Remove the repeated word "the" in comments.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230504085446.2574-1-liubo03@inspur.com
---
 arch/x86/mm/pat/set_memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/mm/pat/set_memory.c b/arch/x86/mm/pat/set_memory.c
index 7159cf7..b18fe0d 100644
--- a/arch/x86/mm/pat/set_memory.c
+++ b/arch/x86/mm/pat/set_memory.c
@@ -231,7 +231,7 @@ within_inclusive(unsigned long addr, unsigned long start, unsigned long end)
  * points to #2, but almost all physical-to-virtual translations point to #1.
  *
  * This is so that we can have both a directmap of all physical memory *and*
- * take full advantage of the the limited (s32) immediate addressing range (2G)
+ * take full advantage of the limited (s32) immediate addressing range (2G)
  * of x86_64.
  *
  * See Documentation/arch/x86/x86_64/mm.rst for more detail.