Skip to content

Commit 92b6de1

Browse files
mchehabJonathan Corbet
authored andcommitted
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>
1 parent bcf0a53 commit 92b6de1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/sphinx/kernel_abi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def nestedParse(self, lines, fname):
138138
code_block += "\n " + l
139139
lines = code_block + "\n\n"
140140

141-
line_regex = re.compile("^#define LINENO (\S+)\#([0-9]+)$")
141+
line_regex = re.compile("^\.\. LINENO (\S+)\#([0-9]+)$")
142142
ln = 0
143143
n = 0
144144
f = fname

scripts/get_abi.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ sub output_rest {
326326
my @filepath = split / /, $data{$what}->{filepath};
327327

328328
if ($enable_lineno) {
329-
printf "#define LINENO %s%s#%s\n\n",
329+
printf ".. LINENO %s%s#%s\n\n",
330330
$prefix, $file[0],
331331
$data{$what}->{line_no};
332332
}
@@ -1022,7 +1022,7 @@ =head1 OPTIONS
10221022
10231023
=item B<--enable-lineno>
10241024
1025-
Enable output of #define LINENO lines.
1025+
Enable output of .. LINENO lines.
10261026
10271027
=item B<--debug> I<debug level>
10281028

0 commit comments

Comments
 (0)