From: Thierry Reding <tred...@nvidia.com> The current checks will interpret a '+' character as special because they use regular expression matching. Escape the '+' character if it appears in a compatible string.
Signed-off-by: Thierry Reding <tred...@nvidia.com> --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4c820607540b..8104d0736e7f 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3145,6 +3145,7 @@ sub process { my $vp_file = $dt_path . "vendor-prefixes.yaml"; foreach my $compat (@compats) { + $compat =~ s/\+/\\+/; my $compat2 = $compat; $compat2 =~ s/\,[a-zA-Z0-9]*\-/\,<\.\*>\-/; my $compat3 = $compat; -- 2.27.0