mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
00ef4ece05
commit
a3340b3578
1 changed files with 2 additions and 2 deletions
|
@ -1886,11 +1886,11 @@ sub process {
|
||||||
if ($ctx !~ /[WEBC]x./ && $ca !~ /(?:\)|!|~|\*|-|\&|\||\+\+|\-\-|\{)$/) {
|
if ($ctx !~ /[WEBC]x./ && $ca !~ /(?:\)|!|~|\*|-|\&|\||\+\+|\-\-|\{)$/) {
|
||||||
ERROR("space required before that '$op' $at\n" . $hereptr);
|
ERROR("space required before that '$op' $at\n" . $hereptr);
|
||||||
}
|
}
|
||||||
if ($op eq '*' && $cc =~/\s*const\b/) {
|
if ($op eq '*' && $cc =~/\s*$Modifier\b/) {
|
||||||
# A unary '*' may be const
|
# A unary '*' may be const
|
||||||
|
|
||||||
} elsif ($ctx =~ /.xW/) {
|
} elsif ($ctx =~ /.xW/) {
|
||||||
ERROR("space prohibited after that '$op' $at\n" . $hereptr);
|
ERROR("Aspace prohibited after that '$op' $at\n" . $hereptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
# unary ++ and unary -- are allowed no space on one side.
|
# unary ++ and unary -- are allowed no space on one side.
|
||||||
|
|
Loading…
Reference in a new issue