From: Randy Dunlap Date: Thu, 7 Dec 2006 04:38:52 +0000 (-0800) Subject: [PATCH] kernel-doc: stricter function pointer recognition X-Git-Tag: v2.6.20-rc1~145^2^2~108 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=ea82c74093f48b28e632d03eeff22faf99727a8c;p=~emulex%2Finfiniband.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 187f5de4612..df3b272f7ce 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/[^\(]+\(\*([^\)]+)\)/;