From: Randy Dunlap Date: Thu, 1 Mar 2007 04:12:10 +0000 (-0800) Subject: [PATCH] kernel-doc: allow space after __attribute__ X-Git-Tag: v2.6.21-rc3~184 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=328d24403d6a6b856722facd39d7b6ccb429353b;p=linux-2.6-omap-h63xx.git [PATCH] kernel-doc: allow space after __attribute__ Allow space(s) between "__attribute__" and "((blah))" so that kernel-doc does not complain like: Warning(/tester/linsrc/linux-2.6.20-git15//kernel/timer.c:939): No description found for parameter 'read_persistent_clock(void' Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index fb43c6440e5..8be269ffbf9 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1547,7 +1547,7 @@ sub dump_function($$) { $prototype =~ s/^noinline +//; $prototype =~ s/__devinit +//; $prototype =~ s/^#define\s+//; #ak added - $prototype =~ s/__attribute__ \(\([a-z,]*\)\)//; + $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//; # Yes, this truly is vile. We are looking for: # 1. Return type (may be nothing if we're looking at a macro)