asm-generic: fix typos in comments
Subsystems (7)
cover asm-generic: fix typos in comments
This corrects 5 misspellings in comments. Each is a separate patch so that any one of them can be dropped without touching the rest.
Nothing outside comments changes. Every touched C file was checked by dropping its comments, replacing each string literal with a placeholder and collapsing whitespace; what remained was identical before and after, so the compiled code cannot differ.
The mistakes were found with scripts/checkpatch.pl against the list in scripts/spelling.txt. The scanning, the edits and the changelogs were produced with Cursor running the claude-opus-5 model, from a request to find and fix spelling mistakes across the tree, and every correction was then re-checked by the comparison described above. Words that name an identifier were left alone deliberately, even when they read as typos, because correcting the prose would make the comment disagree with the code it describes.
Tested by building x86_64 defconfig at v7.3-rc1-269-gbc35965f6940, which is clean. Nothing else was built, so any patch touching code that x86_64 defconfig does not compile has been read but not compiled.
Hemanth Selam (5):
asm-generic: fix typo "explicity" in comment
char: fix typo "funcion" in comment
lib: fix typos in comments
mm: fix typo "mergable" in comment
tools/testing: fix typo "mergable" in comment
drivers/char/mem.c | 2 +- include/linux/mm.h | 2 +- include/uapi/asm-generic/mman-common.h | 2 +- lib/flex_proportions.c | 2 +- lib/rcuref.c | 4 ++-- lib/textsearch.c | 2 +- tools/testing/vma/include/dup.h | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/5 asm-generic: fix typo "explicity" in comment
Correct "explicity" to "Explicitly", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- include/uapi/asm-generic/mman-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/asm-generic/mman-common.h +1 -1
@@ -62,7 +62,7 @@#define MADV_HUGEPAGE 14/* Worth backing with hugepages */ #define MADV_NOHUGEPAGE 15/* Not worth backing with hugepages */ -#define MADV_DONTDUMP 16/* Explicity exclude from the core dump, +#define MADV_DONTDUMP 16/* Explicitly exclude from the core dump, overrides the coredump filter bits */ #define MADV_DODUMP 17/* Clear the MADV_DONTDUMP flag */
Signature · 1 line
2.48.1
Re: [PATCH 1/5] asm-generic: fix typo "explicity" in comment
Quoted 5 lines · Hemanth Selam
Correct "explicity" to "Explicitly", reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5
Thanks for acking the LLM usage! Appreciated.
Quoted 1 line
Signed-off-by Hemanth Selam <[email protected]>
Please make sure to cc everybody on every single patch. It makes it a nightmare to deal with your series given the volume of mail I get.
I may have to write a bot to auto send this :)
Anyway LGTM so:
Quoted 18 lines
--- include/uapi/asm-generic/mman-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/asm-generic/mman-common.h +1
-2@@ -62,7 +62,7 @@#define MADV_HUGEPAGE 14/* Worth backing with hugepages */ #define MADV_NOHUGEPAGE 15/* Not worth backing with hugepages */ -#define MADV_DONTDUMP 16/* Explicity exclude from the core dump, +#define MADV_DONTDUMP 16/* Explicitly exclude from the core dump, overrides the coredump filter bits */ #define MADV_DODUMP 17/* Clear the MADV_DONTDUMP flag */ --
Quoted 2 lines
2.48.1
--
Cheers, Lorenzo
Randy Dunlap
Reviewed-byRe: [PATCH 1/5] asm-generic: fix typo "explicity" in comment
Quoted 8 lines · Lorenzo Stoakes (ARM)
Quoted 5 lines · Hemanth Selam
Correct "explicity" to "Explicitly", reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Thanks for acking the LLM usage! Appreciated.
I agree, but I find myself wondering what the LLM did here. checkpatch reported the misspelling.
Does it take an LLM to use the correct spelling?
Quoted 10 lines
Quoted 1 line
Signed-off-by Hemanth Selam <[email protected]>Please make sure to cc everybody on every single patch. It makes it a nightmare to deal with your series given the volume of mail I get.
I may have to write a bot to auto send this :)
Anyway LGTM so:
Reviewed-by Lorenzo Stoakes (ARM) <[email protected]>
Thanks.
Quoted 25 lines
Quoted 19 lines
--- include/uapi/asm-generic/mman-common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/asm-generic/mman-common.h +1
-2@@ -62,7 +62,7 @@#define MADV_HUGEPAGE 14/* Worth backing with hugepages */ #define MADV_NOHUGEPAGE 15/* Not worth backing with hugepages */ -#define MADV_DONTDUMP 16/* Explicity exclude from the core dump, +#define MADV_DONTDUMP 16/* Explicitly exclude from the core dump, overrides the coredump filter bits */ #define MADV_DODUMP 17/* Clear the MADV_DONTDUMP flag */ --Quoted 2 lines
2.48.1
--
Cheers, Lorenzo
Signature · 1 line
~Randy
Re: [PATCH 1/5] asm-generic: fix typo "explicity" in comment
In reply to Hemanth SelamQuoted 1 line · On Fri, 4 Sep 2026 16:18:46 +0530 Hemanth Selam <[email protected]>…
Correct "explicity" to "Explicitly", reported by
scripts/checkpatch.pl
Too trivial, but 's/explicity/Explicity/'
Quoted 1 line
using the misspelling list in
scripts/spelling.txt.
Again, too trivial, but I think mentioning spelling.txt is not necessary. LLMs might disagree.
Quoted 2 lines
Only touches comments,
no code changes.
Anyway good catch, and looks correct to me. Thank you for fixing this.
Quoted 3 lines
Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>
Thanks,
SJ
[...]
PATCH 2/5 char: fix typo "funcion" in comment
In reply to Hemanth SelamCorrect "funcion" to "function", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/char/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/mem.c +1 -1
@@ -76,7 +76,7 @@ static inline bool should_stop_iteration(void) }/* -* This funcion reads the *physical* memory. The f_pos points directly to the +* This function reads the *physical* memory. The f_pos points directly to the * memory location. */ static ssize_t read_mem(struct file *file, char __user *buf,
Signature · 1 line
2.48.1
Re: [PATCH 2/5] char: fix typo "funcion" in comment
Quoted 6 lines · Hemanth Selam
Correct "funcion" to "function", reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>
This file has been moved into mm/ in a recent series of mine, but I guess it should all come out in the wash anyway one way or another.
Anyway LGTM so:
Quoted 18 lines
--- drivers/char/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/char/mem.c +1
-2@@ -76,7 +76,7 @@ static inline bool should_stop_iteration(void) }/* -* This funcion reads the *physical* memory. The f_pos points directly to the +* This function reads the *physical* memory. The f_pos points directly to the * memory location. */ static ssize_t read_mem(struct file *file, char __user *buf, --
Quoted 2 lines
2.48.1
--
Cheers, Lorenzo
PATCH 3/5 lib: fix typos in comments
In reply to Hemanth SelamFix typos in comments, reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- lib/flex_proportions.c | 2 +- lib/rcuref.c | 4 ++-- lib/textsearch.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
lib/flex_proportions.c +1 -1
@@ -54,7 +54,7 @@ void fprop_global_destroy(struct fprop_global *p) }/* -* Declare @periods new periods. It is upto the caller to make sure period +* Declare @periods new periods. It is up to the caller to make sure period * transitions cannot happen in parallel. * * The function returns true if the proportions are still defined and false
lib/rcuref.c +2 -2
@@ -4,7 +4,7 @@* rcuref - A scalable reference count implementation for RCU managed objects * * rcuref is provided to replace open coded reference count implementations -* based on atomic_t. It protects explicitely RCU managed objects which can +* based on atomic_t. It protects explicitly RCU managed objects which can * be visible even after the last reference has been dropped and the object * is heading towards destruction. *
@@ -147,7 +147,7 @@* All reference count increment/decrement operations are unconditional and * only verified after the fact. This optimizes for the good case and takes * the occasional race vs. a dead or already saturated refcount into -* account. The saturation and dead zones are large enough to accomodate +* account. The saturation and dead zones are large enough to accommodate * for that. * * Memory ordering
lib/textsearch.c +1 -1
@@ -60,7 +60,7 @@* to perform case insensitive matching. But it might slow down * performance of algorithm, so you should use it at own your risk. * The returned configuration may then be used for an arbitrary -* amount of times and even in parallel as long as a separate struct +* number of times and even in parallel as long as a separate struct * ts_state variable is provided to every instance. * * The actual search is performed by either calling
Signature · 1 line
2.48.1
PATCH 4/5 mm: fix typo "mergable" in comment
In reply to Hemanth SelamCorrect "mergable" to "mergeable", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/mm.h +1 -1
@@ -587,7 +587,7 @@ enum {#define VMA_ACCESS_FLAGS mk_vma_flags(VMA_READ_BIT, VMA_WRITE_BIT, VMA_EXEC_BIT)/* -* Special vmas that are non-mergable, non-mlock()able. +* Special vmas that are non-mergeable, non-mlock()able. */ #define VMA_SPECIAL_FLAGS mk_vma_flags(VMA_IO_BIT, VMA_DONTEXPAND_BIT, \
Signature · 1 line
2.48.1
Re: [PATCH 4/5] mm: fix typo "mergable" in comment
Quoted 6 lines · Hemanth Selam
Correct "mergable" to "mergeable", reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>
LGTM so:
Quoted 18 lines
--- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/mm.h +1
-2@@ -587,7 +587,7 @@ enum {#define VMA_ACCESS_FLAGS mk_vma_flags(VMA_READ_BIT, VMA_WRITE_BIT, VMA_EXEC_BIT)/* -* Special vmas that are non-mergable, non-mlock()able. +* Special vmas that are non-mergeable, non-mlock()able. */ #define VMA_SPECIAL_FLAGS mk_vma_flags(VMA_IO_BIT, VMA_DONTEXPAND_BIT, \ --
Quoted 2 lines
2.48.1
--
Cheers, Lorenzo
PATCH 5/5 tools/testing: fix typo "mergable" in comment
In reply to Hemanth SelamCorrect "mergable" to "mergeable", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- tools/testing/vma/include/dup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/vma/include/dup.h +1 -1
@@ -353,7 +353,7 @@ enum {#define VMA_ACCESS_FLAGS mk_vma_flags(VMA_READ_BIT, VMA_WRITE_BIT, VMA_EXEC_BIT)/* -* Special vmas that are non-mergable, non-mlock()able. +* Special vmas that are non-mergeable, non-mlock()able. */ #define VM_SPECIAL (VM_IO | VM_DONTEXPAND | VM_PFNMAP | VM_MIXEDMAP)
Signature · 1 line
2.48.1
Lorenzo Stoakes (ARM)
maintainerRe: [PATCH 5/5] tools/testing: fix typo "mergable" in comment
Quoted 6 lines · Hemanth Selam
Correct "mergable" to "mergeable", reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>
This one I'd drop, as a series of mine I'm going to send soon removes it from the kernel altogether, and I don't want conflicts on a typo fix :)
Thanks!
Quoted 18 lines
--- tools/testing/vma/include/dup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/vma/include/dup.h +1
-2@@ -353,7 +353,7 @@ enum {#define VMA_ACCESS_FLAGS mk_vma_flags(VMA_READ_BIT, VMA_WRITE_BIT, VMA_EXEC_BIT)/* -* Special vmas that are non-mergable, non-mlock()able. +* Special vmas that are non-mergeable, non-mlock()able. */ #define VM_SPECIAL (VM_IO | VM_DONTEXPAND | VM_PFNMAP | VM_MIXEDMAP) --
Quoted 2 lines
2.48.1
--
Cheers, Lorenzo