diff options
author | Andy Whitcroft <apw@shadowen.org> | 2008-07-24 06:29:08 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 19:47:26 +0200 |
commit | 8ea3eb9a20f39d5afa52900a34092b4b5f6b55cb (patch) | |
tree | ad79fe0bade637209967aadf23a34447c717fe1a /scripts | |
parent | checkpatch: macro complexity checks are meaningless in linker scripts (diff) | |
download | linux-8ea3eb9a20f39d5afa52900a34092b4b5f6b55cb.tar.xz 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')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
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'; |