aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorJonathan Corbet <[email protected]>2025-06-06 16:34:32 +0000
committerJonathan Corbet <[email protected]>2025-06-09 20:37:16 +0000
commit42592bd46dded5fab5af1d5e04c9b17cbb4bca6d (patch)
tree52f9f5e8ae2941df9dcb5d8035c584045034b4bd /scripts/lib
parentdocs: kdoc: move the core dispatch into a state table (diff)
downloadkernel-42592bd46dded5fab5af1d5e04c9b17cbb4bca6d.tar.gz
kernel-42592bd46dded5fab5af1d5e04c9b17cbb4bca6d.zip
docs: kdoc: remove the section_intro variable
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 <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/kdoc/kdoc_parser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/lib/kdoc/kdoc_parser.py b/scripts/lib/kdoc/kdoc_parser.py
index 1a6c6865b2c5..f8871f6a2638 100644
--- 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)