From: Randy Dunlap Date: Thu, 7 Dec 2006 04:38:52 +0000 (-0800) Subject: [PATCH] kernel-doc: stricter function pointer recognition X-Git-Tag: MMI-PSA29.97-13-9~45878^2~14^2~116 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea82c74093f48b28e632d03eeff22faf99727a8c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 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/[^\(]+\(\*([^\)]+)\)/;