Documentation/core-api: fix typos in comments
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
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.
--- Documentation/core-api/housekeeping.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/core-api/housekeeping.rst +1 -1
@@ -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
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.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]>
Thanks.
Quoted 17 lines
--- Documentation/core-api/housekeeping.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Documentation/core-api/housekeeping.rst +1
-1@@ -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
Jonathan Corbet
maintainerRe: [PATCH 1/2] Documentation/core-api: fix typo "maintainance" in comment
In reply to Hemanth SelamQuoted 9 lines · Hemanth Selam
Correct "maintainance" to "maintenance", 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]>--- Documentation/core-api/housekeeping.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Both patches applied, thanks.
jon
PATCH 2/2 tools/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.
--- 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
@@ -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
@@ -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
Re: [PATCH 2/2] tools/lib: fix typos in comments
Quoted 6 lines · Hemanth Selam
Fix typos in comments, 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]>
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@@ -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@@ -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