Re: [PATCH] mm: fix typo in comment
From: Andrew Morton
Date: Wed Oct 28 2026 - 00:33:36 EST
On Wed, 28 Oct 2026 12:06:25 +0800 Wang Guangke <gkwang@xxxxxxxxxxxxx> wrote:
> Correct "pages frames" to "page frames".
> Only touches comments,no code changes.
>
> Signed-off-by: Wang Guangke <gkwang@xxxxxxxxxxxxx>
> ---
> mm/mm_init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mm/mm_init.c b/mm/mm_init.c
> index 1533aebafb68..9d233b6af7ab 100644
> --- a/mm/mm_init.c
> +++ b/mm/mm_init.c
> @@ -1179,7 +1179,7 @@ static unsigned long __init __absent_pages_in_range(int nid,
> * @start_pfn: The start PFN to start searching for holes
> * @end_pfn: The end PFN to stop searching for holes
> *
> - * Return: the number of pages frames in memory holes within a range.
> + * Return: the number of page frames in memory holes within a range.
> */
> unsigned long __init absent_pages_in_range(unsigned long start_pfn,
> unsigned long end_pfn)
Sorry, but a one-line comment typo fix just isn't worth a kernel commit.
A more substantial file-wide sweep might receive more consideration. I
asked LLM to do that and came up with the below.
But even a fix for these wouldn't be smiled upon at this time. We're
all swamped and stressed out over a maelstrom of bug reports and fixes.
I found these comment typos in mm/mm_init.c, against mm-unstable
4685a28187f4:
55: "then end" -> "the end"
377: "before borrow the nodemask" -> "before borrowing the nodemask"
1090: "smaller that" -> "smaller than"
1092-1093: "in the lack of an altmap" ->
"in the absence of an altmap"
1217: "sized independent of architecture" ->
"sized independently of architecture"
1223: "in order of monotonic increases memory addresses" ->
"in order of monotonically increasing memory addresses"
1279: "pages frames" -> "page frames"
1524: "been setup" -> "been set up"
1631: "0 ," -> "0,"
1651: "`struct *page`,so" -> "`struct page` objects, so"
1921-1925: missing spaces after the leading '*'
1957: "pfn's" -> "PFNs"
Two comments also name the wrong thing:
1481: "multiple of pageblock_order" should be
"multiple of pageblock_nr_pages", matching the rounding below.
1834: "arch_max_dma32_pfn has no pages" should be
"ZONE_DMA32 has no pages".