aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2006-12-06 23:38:52 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:41 -0500
commitea82c74093f48b28e632d03eeff22faf99727a8c (patch)
treed0b51f4e7a4114bf250a6202392a66f8636e5d2d /scripts
parent4668edc334ee90cf50c382c3e423cfc510b5a126 (diff)
[PATCH] kernel-doc: stricter function pointer recognition
Be more careful about function pointer args: look for "(...*" instead of just "(". This line in include/linux/input.h fools the current kernel-doc script into deciding that this is a function pointer: unsigned long ffbit[NBITS(FF_MAX)]; Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kernel-doc2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc
index 187f5de4612c..df3b272f7ce6 100755
--- a/scripts/kernel-doc
+++ b/scripts/kernel-doc
@@ -1430,7 +1430,7 @@ sub create_parameterlist($$$) {
1430 # corresponding data structures "correctly". Catch it later in 1430 # corresponding data structures "correctly". Catch it later in
1431 # output_* subs. 1431 # output_* subs.
1432 push_parameter($arg, "", $file); 1432 push_parameter($arg, "", $file);
1433 } elsif ($arg =~ m/\(/) { 1433 } elsif ($arg =~ m/\(.*\*/) {
1434 # pointer-to-function 1434 # pointer-to-function
1435 $arg =~ tr/#/,/; 1435 $arg =~ tr/#/,/;
1436 $arg =~ m/[^\(]+\(\*([^\)]+)\)/; 1436 $arg =~ m/[^\(]+\(\*([^\)]+)\)/;