Skip to content

Commit

Permalink
checkpatch: handle return types of pointers to functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
awhitcroft authored and torvalds committed Jul 24, 2008
1 parent b8f96a3 commit 8ea3eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 8ea3eb9

Please sign in to comment.