aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2007-02-28 23:12:10 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-03-01 17:53:36 -0500
commit328d24403d6a6b856722facd39d7b6ccb429353b (patch)
treeb35348d8a3adb80dcf04553fbff01e1187c998ec
parent9d6346311418d12e90cca9384e5fbbe2ffa18efb (diff)
[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 <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rwxr-xr-xscripts/kernel-doc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index fb43c6440e54..8be269ffbf9d 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1547,7 +1547,7 @@ sub dump_function($$) {
1547 $prototype =~ s/^noinline +//; 1547 $prototype =~ s/^noinline +//;
1548 $prototype =~ s/__devinit +//; 1548 $prototype =~ s/__devinit +//;
1549 $prototype =~ s/^#define\s+//; #ak added 1549 $prototype =~ s/^#define\s+//; #ak added
1550 $prototype =~ s/__attribute__ \(\([a-z,]*\)\)//; 1550 $prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
1551 1551
1552 # Yes, this truly is vile. We are looking for: 1552 # Yes, this truly is vile. We are looking for:
1553 # 1. Return type (may be nothing if we're looking at a macro) 1553 # 1. Return type (may be nothing if we're looking at a macro)