OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6236ef
)
kernel-doc: include line numbers for function prototypes
author
Mauro Carvalho Chehab
<mchehab+huawei@kernel.org>
Wed, 9 Sep 2020 14:10:33 +0000
(16:10 +0200)
committer
Jonathan Corbet
<corbet@lwn.net>
Thu, 10 Sep 2020 16:44:46 +0000
(10:44 -0600)
This should solve bad error reports like this one:
./include/linux/iio/iio.h:0: WARNING: Unknown target name: "devm".
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link:
https://lore.kernel.org/r/56eed0ba50cd726236acd12b11b55ce54854c5ea.1599660067.git.mchehab+huawei@kernel.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
scripts/kernel-doc
patch
|
blob
|
history
diff --git
a/scripts/kernel-doc
b/scripts/kernel-doc
index
d1b4456
..
3982d47
100755
(executable)
--- a/
scripts/kernel-doc
+++ b/
scripts/kernel-doc
@@
-1594,6
+1594,8
@@
sub dump_function($$) {
my $file = shift;
my $noret = 0;
+ print_lineno($.);
+
$prototype =~ s/^static +//;
$prototype =~ s/^extern +//;
$prototype =~ s/^asmlinkage +//;