summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorAndy Whitcroft2008-07-24 06:29:08 +0200
committerLinus Torvalds2008-07-24 19:47:26 +0200
commit8ea3eb9a20f39d5afa52900a34092b4b5f6b55cb (patch)
treead79fe0bade637209967aadf23a34447c717fe1a /scripts/checkpatch.pl
parentcheckpatch: macro complexity checks are meaningless in linker scripts (diff)
downloadkernel-qcow2-linux-8ea3eb9a20f39d5afa52900a34092b4b5f6b55cb.tar.gz
kernel-qcow2-linux-8ea3eb9a20f39d5afa52900a34092b4b5f6b55cb.tar.xz
kernel-qcow2-linux-8ea3eb9a20f39d5afa52900a34092b4b5f6b55cb.zip
checkpatch: handle return types of pointers to functions
Make sure we correctly mark the return type of the pointer to a function declaration. const void *(*sb_tag)(struct sysfs_tag_info *info); Signed-off-by: Andy Whitcroft <apw@shadowen.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 775f2b146aa1..6d07b6778c91 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -715,7 +715,7 @@ sub annotate_values {
$av_preprocessor = 0;
}
- } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\))/) {
+ } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\()/) {
print "DECLARE($1)\n" if ($dbg_values > 1);
$type = 'T';