Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20250606163438.229916-4-corbet@lwn.net

+1 -2
+1 -2
scripts/lib/kdoc/kdoc_parser.py
··· 203 203 204 204 # Section names 205 205 206 - section_intro = "Introduction" 207 206 section_context = "Context" 208 207 section_return = "Return" 209 208 ··· 1214 1215 self.entry.new_start_line = ln 1215 1216 1216 1217 if not doc_block.group(1): 1217 - self.entry.section = self.section_intro 1218 + self.entry.section = "Introduction" 1218 1219 else: 1219 1220 self.entry.section = doc_block.group(1) 1220 1221