diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2006-12-06 20:38:52 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 08:39:41 -0800 |
commit | ea82c74093f48b28e632d03eeff22faf99727a8c (patch) | |
tree | d0b51f4e7a4114bf250a6202392a66f8636e5d2d | |
parent | 4668edc334ee90cf50c382c3e423cfc510b5a126 (diff) | |
download | lwn-ea82c74093f48b28e632d03eeff22faf99727a8c.tar.gz lwn-ea82c74093f48b28e632d03eeff22faf99727a8c.zip |
[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>
-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 187f5de4612c..df3b272f7ce6 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc @@ -1430,7 +1430,7 @@ sub create_parameterlist($$$) { # corresponding data structures "correctly". Catch it later in # output_* subs. push_parameter($arg, "", $file); - } elsif ($arg =~ m/\(/) { + } elsif ($arg =~ m/\(.*\*/) { # pointer-to-function $arg =~ tr/#/,/; $arg =~ m/[^\(]+\(\*([^\)]+)\)/; |