2
0
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:
Adrian Moreno
2024-06-05 15:51:38 +02:00
committed by Simon Horman
parent f01a768e95
commit 35e647051f
2 changed files with 26 additions and 1 deletions

View File

@@ -739,7 +739,7 @@ infix_operators = \
'&=', '^=', '|=', '<<=', '>>=']] \
+ [r'[^<" ]<[^=" ]',
r'[^\->" ]>[^=" ]',
r'[^ !()/"]\*[^/]',
r'[^ !()/"\*]\*+[^/]',
r'[^ !&()"]&',
r'[^" +(]\+[^"+;]',
r'[^" \-(]\-[^"\->;]',