mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
checkpatch: Don't warn on pointer to pointer.
Current regexp used to check whitespaces around operators does not consider that there can be more than one "*" together to express pointer to pointer. As a result, false positive warnings are raised when the patch contains a simple list of pointers, e.g: "char **errrp"). Fix the regexp to allow more than one consecutive "*" characters. Signed-off-by: Adrian Moreno <amorenoz@redhat.com> Acked-by: Eelco Chaudron <echaudro@redhat.com> Signed-off-by: Simon Horman <horms@ovn.org>
This commit is contained in:
committed by
Simon Horman
parent
f01a768e95
commit
35e647051f
@@ -739,7 +739,7 @@ infix_operators = \
|
||||
'&=', '^=', '|=', '<<=', '>>=']] \
|
||||
+ [r'[^<" ]<[^=" ]',
|
||||
r'[^\->" ]>[^=" ]',
|
||||
r'[^ !()/"]\*[^/]',
|
||||
r'[^ !()/"\*]\*+[^/]',
|
||||
r'[^ !&()"]&',
|
||||
r'[^" +(]\+[^"+;]',
|
||||
r'[^" \-(]\-[^"\->;]',
|
||||
|
Reference in New Issue
Block a user