History

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);

Andy Whitcroft committed 18 years ago

Commit 8ea3eb91 parent b8f96a31 file · +1 −1Browse files

Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all

Unified · Split

scripts/checkpatch.pl+1−1
@@ -715,7 +715,7 @@ sub annotate_values { · 714 unmodified lines
715715 $av_preprocessor = 0;
716716 }
717717
718− } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\))/) {
718+ } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\()/) {
719719 print "DECLARE($1)\n" if ($dbg_values > 1);
720720 $type = 'T';
721721