Make sure we correctly mark the return type of the pointer to a function declaration. const void *(*sb_tag)(struct sysfs_tag_info *info);
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -715,7 +715,7 @@ sub annotate_values { · 714 unmodified lines | ||
| 715 | 715 | $av_preprocessor = 0; |
| 716 | 716 | } |
| 717 | 717 | |
| 718 | − } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\))/) { | |
| 718 | + } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\()/) { | |
| 719 | 719 | print "DECLARE($1)\n" if ($dbg_values > 1); |
| 720 | 720 | $type = 'T'; |
| 721 | 721 | |