diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2007-02-28 20:12:10 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-01 14:53:36 -0800 |
commit | 328d24403d6a6b856722facd39d7b6ccb429353b (patch) | |
tree | b35348d8a3adb80dcf04553fbff01e1187c998ec /scripts/kernel-doc | |
parent | 9d6346311418d12e90cca9384e5fbbe2ffa18efb (diff) | |
download | linux-3.10-328d24403d6a6b856722facd39d7b6ccb429353b.tar.gz linux-3.10-328d24403d6a6b856722facd39d7b6ccb429353b.tar.bz2 linux-3.10-328d24403d6a6b856722facd39d7b6ccb429353b.zip |
[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/kernel-doc')
-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 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) |