[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200714094141.147418-1-thierry.reding@gmail.com>
Date: Tue, 14 Jul 2020 11:41:41 +0200
From: Thierry Reding <thierry.reding@...il.com>
To: Andy Whitcroft <apw@...onical.com>, Joe Perches <joe@...ches.com>
Cc: Rob Herring <robh+dt@...nel.org>, linux-kernel@...r.kernel.org
Subject: [PATCH] checkpatch.pl: Allow '+' in compatible strings
From: Thierry Reding <treding@...dia.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 <treding@...dia.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
Powered by blists - more mailing lists