summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2019-08-05 09:29:50 -0700
committerJonathan Corbet <corbet@lwn.net>2019-08-06 11:22:47 -0600
commit95e760cbf62755bd3d8999bee1e6579f0ff1425e (patch)
tree0afacf802c6e6b4bff2415d1e3228383dd407361 /scripts
parent9195c3e8d58a258344a33e0e05359564e8f8e538 (diff)
downloadlinux-95e760cbf62755bd3d8999bee1e6579f0ff1425e.tar.bz2
kernel-doc: ignore __printf attribute
Ignore __printf() function attributes just as other __attribute__ strings are ignored. Fixes this kernel-doc warning message: include/kunit/kunit-stream.h:58: warning: Function parameter or member '2' not described in '__printf' Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Brendan Higgins <brendanhiggins@google.com> Tested-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kernel-doc1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 6b03012750da..32e793ca5e95 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1580,6 +1580,7 @@ sub dump_function($$) {
$prototype =~ s/__must_check +//;
$prototype =~ s/__weak +//;
$prototype =~ s/__sched +//;
+ $prototype =~ s/__printf\s*\(\s*\d*\s*,\s*\d*\s*\) +//;
my $define = $prototype =~ s/^#\s*define\s+//; #ak added
$prototype =~ s/__attribute__\s*\(\(
(?: