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

scripts/get_abi: change the file/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/125ffd31fbc77ad9eee4d6906e1830b8162fa6ca.1648290305.git.mchehab@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
92b6de17 bcf0a536

+3 -3
+1 -1
Documentation/sphinx/kernel_abi.py
··· 138 138 code_block += "\n " + l 139 139 lines = code_block + "\n\n" 140 140 141 - line_regex = re.compile("^#define LINENO (\S+)\#([0-9]+)$") 141 + line_regex = re.compile("^\.\. LINENO (\S+)\#([0-9]+)$") 142 142 ln = 0 143 143 n = 0 144 144 f = fname
+2 -2
scripts/get_abi.pl
··· 326 326 my @filepath = split / /, $data{$what}->{filepath}; 327 327 328 328 if ($enable_lineno) { 329 - printf "#define LINENO %s%s#%s\n\n", 329 + printf ".. LINENO %s%s#%s\n\n", 330 330 $prefix, $file[0], 331 331 $data{$what}->{line_no}; 332 332 } ··· 1022 1022 1023 1023 =item B<--enable-lineno> 1024 1024 1025 - Enable output of #define LINENO lines. 1025 + Enable output of .. LINENO lines. 1026 1026 1027 1027 =item B<--debug> I<debug level> 1028 1028