mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Documentation/core-api: fix typos in comments
@ 2026-09-04 11:32 Hemanth Selam
  2026-09-04 11:32 ` [PATCH 1/2] Documentation/core-api: fix typo "maintainance" in comment Hemanth Selam
  2026-09-04 11:32 ` [PATCH 2/2] tools/lib: fix typos in comments Hemanth Selam
  0 siblings, 2 replies; 5+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:32 UTC (permalink / raw)
  Cc: linux-kernel

This corrects 2 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 (2):
  Documentation/core-api: fix typo "maintainance" in comment
  tools/lib: fix typos in comments

 Documentation/core-api/housekeeping.rst | 2 +-
 tools/lib/python/kdoc/c_lex.py          | 2 +-
 tools/lib/python/kdoc/xforms_lists.py   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] Documentation/core-api: fix typo "maintainance" in comment
  2026-09-04 11:32 [PATCH 0/2] Documentation/core-api: fix typos in comments Hemanth Selam
@ 2026-09-04 11:32 ` Hemanth Selam
  2026-09-04 21:27   ` Randy Dunlap
  2026-09-04 11:32 ` [PATCH 2/2] tools/lib: fix typos in comments Hemanth Selam
  1 sibling, 1 reply; 5+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:32 UTC (permalink / raw)
  To: Jonathan Corbet, Shuah Khan, Randy Dunlap; +Cc: linux-kernel, linux-doc

Correct "maintainance" to "maintenance", reported by scripts/checkpatch.pl
using the misspelling list in scripts/spelling.txt.  Only touches comments,
no code changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 Documentation/core-api/housekeeping.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/core-api/housekeeping.rst b/Documentation/core-api/housekeeping.rst
index ccb0a88b9cb3..71ba5d86f249 100644
--- a/Documentation/core-api/housekeeping.rst
+++ b/Documentation/core-api/housekeeping.rst
@@ -9,7 +9,7 @@ extreme workloads can't stand, such as in some DPDK usecases.
 
 The kernel work moved away by CPU isolation is commonly described as
 "housekeeping" because it includes ground work that performs cleanups,
-statistics maintainance and actions relying on them, memory release,
+statistics maintenance and actions relying on them, memory release,
 various deferrals etc...
 
 Sometimes housekeeping is just some unbound work (unbound workqueues,
-- 
2.48.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] tools/lib: fix typos in comments
  2026-09-04 11:32 [PATCH 0/2] Documentation/core-api: fix typos in comments Hemanth Selam
  2026-09-04 11:32 ` [PATCH 1/2] Documentation/core-api: fix typo "maintainance" in comment Hemanth Selam
@ 2026-09-04 11:32 ` Hemanth Selam
  2026-09-04 21:28   ` Randy Dunlap
  1 sibling, 1 reply; 5+ messages in thread
From: Hemanth Selam @ 2026-09-04 11:32 UTC (permalink / raw)
  To: Jonathan Corbet, Shuah Khan, Randy Dunlap; +Cc: linux-kernel, linux-doc

Fix typos in comments, reported by scripts/checkpatch.pl using the
misspelling list in scripts/spelling.txt.  Only touches comments, no code
changes.

Assisted-by: Cursor:claude-opus-5
Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>
---
 tools/lib/python/kdoc/c_lex.py        | 2 +-
 tools/lib/python/kdoc/xforms_lists.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/lib/python/kdoc/c_lex.py b/tools/lib/python/kdoc/c_lex.py
index cb95f5172448..efbc23c01abd 100644
--- a/tools/lib/python/kdoc/c_lex.py
+++ b/tools/lib/python/kdoc/c_lex.py
@@ -68,7 +68,7 @@ class CToken():
 
     MISMATCH = 255  #: an error indicator: should never happen in practice.
 
-    # Dict to convert from an enum interger into a string.
+    # Dict to convert from an enum integer into a string.
     _name_by_val = {v: k for k, v in dict(vars()).items() if isinstance(v, int)}
 
     # Dict to convert from string to an enum-like integer value.
diff --git a/tools/lib/python/kdoc/xforms_lists.py b/tools/lib/python/kdoc/xforms_lists.py
index e3dda2fe8a53..423e2bab7667 100644
--- a/tools/lib/python/kdoc/xforms_lists.py
+++ b/tools/lib/python/kdoc/xforms_lists.py
@@ -53,7 +53,7 @@ class CTransforms:
         (CMatch("__attribute__"), ""),
 
         #
-        # Macro __struct_group() creates an union with an anonymous
+        # Macro __struct_group() creates a union with an anonymous
         # and a non-anonymous struct, depending on the parameters. We only
         # need one of those at kernel-doc, as we won't be documenting the same
         # members twice.
-- 
2.48.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] Documentation/core-api: fix typo "maintainance" in comment
  2026-09-04 11:32 ` [PATCH 1/2] Documentation/core-api: fix typo "maintainance" in comment Hemanth Selam
@ 2026-09-04 21:27   ` Randy Dunlap
  0 siblings, 0 replies; 5+ messages in thread
From: Randy Dunlap @ 2026-09-04 21:27 UTC (permalink / raw)
  To: Hemanth Selam, Jonathan Corbet, Shuah Khan; +Cc: linux-kernel, linux-doc



On 9/4/26 4:32 AM, Hemanth Selam wrote:
> Correct "maintainance" to "maintenance", reported by scripts/checkpatch.pl
> using the misspelling list in scripts/spelling.txt.  Only touches comments,
> no code changes.
> 
> Assisted-by: Cursor:claude-opus-5
> Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>

Acked-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.

> ---
>  Documentation/core-api/housekeeping.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/core-api/housekeeping.rst b/Documentation/core-api/housekeeping.rst
> index ccb0a88b9cb3..71ba5d86f249 100644
> --- a/Documentation/core-api/housekeeping.rst
> +++ b/Documentation/core-api/housekeeping.rst
> @@ -9,7 +9,7 @@ extreme workloads can't stand, such as in some DPDK usecases.
>  
>  The kernel work moved away by CPU isolation is commonly described as
>  "housekeeping" because it includes ground work that performs cleanups,
> -statistics maintainance and actions relying on them, memory release,
> +statistics maintenance and actions relying on them, memory release,
>  various deferrals etc...
>  
>  Sometimes housekeeping is just some unbound work (unbound workqueues,

-- 
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] tools/lib: fix typos in comments
  2026-09-04 11:32 ` [PATCH 2/2] tools/lib: fix typos in comments Hemanth Selam
@ 2026-09-04 21:28   ` Randy Dunlap
  0 siblings, 0 replies; 5+ messages in thread
From: Randy Dunlap @ 2026-09-04 21:28 UTC (permalink / raw)
  To: Hemanth Selam, Jonathan Corbet, Shuah Khan; +Cc: linux-kernel, linux-doc



On 9/4/26 4:32 AM, Hemanth Selam wrote:
> Fix typos in comments, reported by scripts/checkpatch.pl using the
> misspelling list in scripts/spelling.txt.  Only touches comments, no code
> changes.
> 
> Assisted-by: Cursor:claude-opus-5
> Signed-off-by: Hemanth Selam <hemanth.selam@gmail.com>

Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Thanks.

> ---
>  tools/lib/python/kdoc/c_lex.py        | 2 +-
>  tools/lib/python/kdoc/xforms_lists.py | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tools/lib/python/kdoc/c_lex.py b/tools/lib/python/kdoc/c_lex.py
> index cb95f5172448..efbc23c01abd 100644
> --- a/tools/lib/python/kdoc/c_lex.py
> +++ b/tools/lib/python/kdoc/c_lex.py
> @@ -68,7 +68,7 @@ class CToken():
>  
>      MISMATCH = 255  #: an error indicator: should never happen in practice.
>  
> -    # Dict to convert from an enum interger into a string.
> +    # Dict to convert from an enum integer into a string.
>      _name_by_val = {v: k for k, v in dict(vars()).items() if isinstance(v, int)}
>  
>      # Dict to convert from string to an enum-like integer value.
> diff --git a/tools/lib/python/kdoc/xforms_lists.py b/tools/lib/python/kdoc/xforms_lists.py
> index e3dda2fe8a53..423e2bab7667 100644
> --- a/tools/lib/python/kdoc/xforms_lists.py
> +++ b/tools/lib/python/kdoc/xforms_lists.py
> @@ -53,7 +53,7 @@ class CTransforms:
>          (CMatch("__attribute__"), ""),
>  
>          #
> -        # Macro __struct_group() creates an union with an anonymous
> +        # Macro __struct_group() creates a union with an anonymous
>          # and a non-anonymous struct, depending on the parameters. We only
>          # need one of those at kernel-doc, as we won't be documenting the same
>          # members twice.

-- 
~Randy

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-04 21:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-04 11:32 [PATCH 0/2] Documentation/core-api: fix typos in comments Hemanth Selam
2026-09-04 11:32 ` [PATCH 1/2] Documentation/core-api: fix typo "maintainance" in comment Hemanth Selam
2026-09-04 21:27   ` Randy Dunlap
2026-09-04 11:32 ` [PATCH 2/2] tools/lib: fix typos in comments Hemanth Selam
2026-09-04 21:28   ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®