projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef8c78
)
docs: kdoc: remove the section_intro variable
author
Jonathan Corbet
<corbet@lwn.net>
Fri, 6 Jun 2025 16:34:32 +0000
(10:34 -0600)
committer
Jonathan Corbet
<corbet@lwn.net>
Mon, 9 Jun 2025 20:37:16 +0000
(14:37 -0600)
It is only used in one place, so just put the constant string
"Introduction" there so people don't have to go looking for it.
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link:
https://lore.kernel.org/r/20250606163438.229916-4-corbet@lwn.net
scripts/lib/kdoc/kdoc_parser.py
patch
|
blob
|
blame
|
history
diff --git
a/scripts/lib/kdoc/kdoc_parser.py
b/scripts/lib/kdoc/kdoc_parser.py
index 1a6c6865b2c54582132ed9187d1056ae68449cc8..f8871f6a26387881eee3781c662c5df06f55ea49 100644
(file)
--- a/
scripts/lib/kdoc/kdoc_parser.py
+++ b/
scripts/lib/kdoc/kdoc_parser.py
@@
-203,7
+203,6
@@
class KernelDoc:
# Section names
- section_intro = "Introduction"
section_context = "Context"
section_return = "Return"
@@
-1215,7
+1214,7
@@
class KernelDoc:
self.entry.new_start_line = ln
if not doc_block.group(1):
- self.entry.section =
self.section_intro
+ self.entry.section =
"Introduction"
else:
self.entry.section = doc_block.group(1)