diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-02-28 23:12:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-01 17:53:36 -0500 |
commit | 328d24403d6a6b856722facd39d7b6ccb429353b (patch) | |
tree | b35348d8a3adb80dcf04553fbff01e1187c998ec /scripts | |
parent | 9d6346311418d12e90cca9384e5fbbe2ffa18efb (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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/kernel-doc | 2 |
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) |