Skip to content

Commit 328d244

Browse files
rddunlapLinus Torvalds
authored andcommitted
[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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 9d63463 commit 328d244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/kernel-doc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ sub dump_function($$) {
15471547
$prototype =~ s/^noinline +//;
15481548
$prototype =~ s/__devinit +//;
15491549
$prototype =~ s/^#define\s+//; #ak added
1550-
$prototype =~ s/__attribute__ \(\([a-z,]*\)\)//;
1550+
$prototype =~ s/__attribute__\s*\(\([a-z,]*\)\)//;
15511551

15521552
# Yes, this truly is vile. We are looking for:
15531553
# 1. Return type (may be nothing if we're looking at a macro)

0 commit comments

Comments
 (0)