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

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>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
b79dfef0 92b6de17

+3 -3
+1 -1
Documentation/sphinx/kerneldoc.py
··· 130 130 result = ViewList() 131 131 132 132 lineoffset = 0; 133 - line_regex = re.compile("^#define LINENO ([0-9]+)$") 133 + line_regex = re.compile("^\.\. LINENO ([0-9]+)$") 134 134 for line in lines: 135 135 match = line_regex.search(line) 136 136 if match:
+2 -2
scripts/kernel-doc
··· 424 424 sub print_lineno { 425 425 my $lineno = shift; 426 426 if ($enable_lineno && defined($lineno)) { 427 - print "#define LINENO " . $lineno . "\n"; 427 + print ".. LINENO " . $lineno . "\n"; 428 428 } 429 429 } 430 430 ## ··· 2478 2478 2479 2479 =item -enable-lineno 2480 2480 2481 - Enable output of #define LINENO lines. 2481 + Enable output of .. LINENO lines. 2482 2482 2483 2483 =back 2484 2484