diff options
author | Andy Whitcroft <apw@canonical.com> | 2010-10-26 17:23:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-26 19:52:19 -0400 |
commit | e91b6e263ed6735c766cb14bbe63b9c7bd774526 (patch) | |
tree | aeb8283e01f9ec0fe3250f60ec83da4fe2399e2e /scripts | |
parent | 6b4c5bebcebb0a48d29947e9aa749650751a7696 (diff) |
checkpatch: types may sit on a line on their own
When the following form is used we have a type which fully fills a line.
This means that a type may end at the end of line as well as at the
following identifier.
int **
foo;
Reported-by: Daniel Walker <dwalker@fifo99.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
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 0a87c7417ada..41f59b1e209b 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -843,7 +843,7 @@ sub annotate_values { | |||
843 | $av_preprocessor = 0; | 843 | $av_preprocessor = 0; |
844 | } | 844 | } |
845 | 845 | ||
846 | } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\()/) { | 846 | } elsif ($cur =~ /^($Type)\s*(?:$Ident|,|\)|\(|\s*$)/) { |
847 | print "DECLARE($1)\n" if ($dbg_values > 1); | 847 | print "DECLARE($1)\n" if ($dbg_values > 1); |
848 | $type = 'T'; | 848 | $type = 'T'; |
849 | 849 | ||