aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/sphinx
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@kernel.org>2022-03-26 11:27:24 +0100
committerJonathan Corbet <corbet@lwn.net>2022-03-28 13:53:46 -0600
commitb79dfef0e2fcf41c736e7012c59d1260aa60f075 (patch)
tree61f8cf33080d8d2f46dc2acd3e88cebf9698d681 /Documentation/sphinx
parentscripts/get_abi: change the file/line number meta info (diff)
downloadlinux-dev-b79dfef0e2fcf41c736e7012c59d1260aa60f075.tar.xz
linux-dev-b79dfef0e2fcf41c736e7012c59d1260aa60f075.zip
scripts/kernel-doc: change the line number meta info
In order to make it more standard and ReST compatible, change the meta-tag used with --enable-lineno from: #define LINENO to .. LINENO In practice, no functional changes. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Link: https://lore.kernel.org/r/40725032b5a4a33db740bf1de397523af958ff8a.1648290305.git.mchehab@kernel.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/sphinx')
-rw-r--r--Documentation/sphinx/kerneldoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/kerneldoc.py b/Documentation/sphinx/kerneldoc.py
index 8189c33b9dda..9395892c7ba3 100644
--- a/Documentation/sphinx/kerneldoc.py
+++ b/Documentation/sphinx/kerneldoc.py
@@ -130,7 +130,7 @@ class KernelDocDirective(Directive):
result = ViewList()
lineoffset = 0;
- line_regex = re.compile("^#define LINENO ([0-9]+)$")
+ line_regex = re.compile("^\.\. LINENO ([0-9]+)$")
for line in lines:
match = line_regex.search(line)
if match: