mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
docs: kernel_include.py: fix line numbers for TOC
On TOC output, we need to embeed line numbers with ViewList. Change the parse class to produce a line-number parsed result, and adjust the output accordingly. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <74eed96e32f79eaaef7a99ffe7c3224fed369c27.1759329363.git.mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Jonathan Corbet
parent
ba9fbb3d9a
commit
3ed9521772
@@ -422,7 +422,7 @@ class ParseDataStructs:
|
||||
|
||||
# Sort symbols alphabetically
|
||||
for symbol, (ref, ln) in sorted(refs.items()):
|
||||
text.append(f"* {ref}: line #{ln}")
|
||||
text.append(f"- LINENO_{ln}: {ref}")
|
||||
|
||||
text.append("") # Add empty line between categories
|
||||
|
||||
|
||||
Reference in New Issue
Block a user