aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAndy Whitcroft <apw@shadowen.org>2008-07-24 00:29:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 13:47:26 -0400
commit8ea3eb9a20f39d5afa52900a34092b4b5f6b55cb (patch)
treead79fe0bade637209967aadf23a34447c717fe1a /scripts
parentb8f96a31f38c8e9fc75f0a89c6815e7cbc402858 (diff)
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')
-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 {
715 $av_preprocessor = 0; 715 $av_preprocessor = 0;
716 } 716 }
717 717
718 } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\))/) { 718 } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\()/) {
719 print "DECLARE($1)\n" if ($dbg_values > 1); 719 print "DECLARE($1)\n" if ($dbg_values > 1);
720 $type = 'T'; 720 $type = 'T';
721 721