diff options
author | Andy Whitcroft <apw@canonical.com> | 2009-02-27 17:03:07 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-02-27 19:26:22 -0500 |
commit | a3340b35787975414d5f6fee83e00640688be2cb (patch) | |
tree | 48eadd0bde2f008de17ca1b780e428451b042942 /scripts | |
parent | 00ef4ece05096a5c523e265b8ce6627fb5e171c2 (diff) |
checkpatch: pointer type star may have modifiers following
We may have any modifier following a pointer type star. Handle this:
void * __user * __user foo;
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 92d13710ff5..15a59042512 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -1886,11 +1886,11 @@ sub process { | |||
1886 | if ($ctx !~ /[WEBC]x./ && $ca !~ /(?:\)|!|~|\*|-|\&|\||\+\+|\-\-|\{)$/) { | 1886 | if ($ctx !~ /[WEBC]x./ && $ca !~ /(?:\)|!|~|\*|-|\&|\||\+\+|\-\-|\{)$/) { |
1887 | ERROR("space required before that '$op' $at\n" . $hereptr); | 1887 | ERROR("space required before that '$op' $at\n" . $hereptr); |
1888 | } | 1888 | } |
1889 | if ($op eq '*' && $cc =~/\s*const\b/) { | 1889 | if ($op eq '*' && $cc =~/\s*$Modifier\b/) { |
1890 | # A unary '*' may be const | 1890 | # A unary '*' may be const |
1891 | 1891 | ||
1892 | } elsif ($ctx =~ /.xW/) { | 1892 | } elsif ($ctx =~ /.xW/) { |
1893 | ERROR("space prohibited after that '$op' $at\n" . $hereptr); | 1893 | ERROR("Aspace prohibited after that '$op' $at\n" . $hereptr); |
1894 | } | 1894 | } |
1895 | 1895 | ||
1896 | # unary ++ and unary -- are allowed no space on one side. | 1896 | # unary ++ and unary -- are allowed no space on one side. |