Skip to contentSkip to conversation

Documentation/core-api: fix typos in comments

PATCH In review Hemanth Selam 3 participants 6 messages Sep 4 – Sep 7 Documentation

lore
Share & tools
lore
#0 lore raw

cover Documentation/core-api: fix typos in comments

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(-)
Signature · 1 line
2.48.1
#1 lore raw

PATCH 1/2 Documentation/core-api: fix typo "maintainance" in comment

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
---
 Documentation/core-api/housekeeping.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/core-api/housekeeping.rst +1 -1
index ccb0a88b9cb3..71ba5d86f249 100644
@@ -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,
Signature · 1 line
2.48.1
reviewer Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] Documentation/core-api: fix typo "maintainance" in comment

Quoted 6 lines · Hemanth Selam

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

Thanks.

Quoted 17 lines
---
 Documentation/core-api/housekeeping.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/core-api/housekeeping.rst +1 -1
index ccb0a88b9cb3..71ba5d86f249 100644
@@ -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,
Signature · 1 line
~Randy
maintainer
#3 lore raw

Re: [PATCH 1/2] Documentation/core-api: fix typo "maintainance" in comment

In reply to Hemanth Selam
Quoted 9 lines · Hemanth Selam

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
---
 Documentation/core-api/housekeeping.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Both patches applied, thanks.

jon

#4 lore raw

PATCH 2/2 tools/lib: fix typos in comments

In reply to Hemanth Selam

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
---
 tools/lib/python/kdoc/c_lex.py        | 2 +-
 tools/lib/python/kdoc/xforms_lists.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/lib/python/kdoc/c_lex.py +1 -1
index cb95f5172448..efbc23c01abd 100644
@@ -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.
tools/lib/python/kdoc/xforms_lists.py +1 -1
index e3dda2fe8a53..423e2bab7667 100644
@@ -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.
Signature · 1 line
2.48.1
reviewer Reviewed-by on v1 2/2
#5 lore raw

Re: [PATCH 2/2] tools/lib: fix typos in comments

Quoted 6 lines · Hemanth Selam

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

Thanks.

Quoted 31 lines
---
 tools/lib/python/kdoc/c_lex.py        | 2 +-
 tools/lib/python/kdoc/xforms_lists.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/lib/python/kdoc/c_lex.py +1 -1
index cb95f5172448..efbc23c01abd 100644
@@ -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.
tools/lib/python/kdoc/xforms_lists.py +1 -1
index e3dda2fe8a53..423e2bab7667 100644
@@ -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.
Signature · 1 line
~Randy