From: Mauro Carvalho Chehab Date: Wed, 9 Sep 2020 14:10:33 +0000 (+0200) Subject: kernel-doc: include line numbers for function prototypes X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=5eb6b4b3e21612be735fe0305c27bfe2e7ab3224;p=linux.git kernel-doc: include line numbers for function prototypes 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 Link: https://lore.kernel.org/r/56eed0ba50cd726236acd12b11b55ce54854c5ea.1599660067.git.mchehab+huawei@kernel.org Signed-off-by: Jonathan Corbet --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index d1b445665ad65..3982d47048a73 100755 --- 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 +//;