Messages in this thread Patch in this message | | | Subject | Re: + checkpatch-use-patch-subject-when-reading-from-stdin.patch added to -mm tree | From | Joe Perches <> | Date | Fri, 08 May 2020 11:28:37 -0700 |
| |
On Tue, 2020-05-05 at 12:18 -0700, akpm@linux-foundation.org wrote: > The patch titled > Subject: checkpatch: use patch subject when reading from stdin > has been added to the -mm tree. Its filename is > checkpatch-use-patch-subject-when-reading-from-stdin.patch
Hey Andrew:
Please apply this patch on top of Geert's first one to reduce cpu usage.
For the original patch:
Acked-by: Joe Perches <joe@perches.com> --- scripts/checkpatch.pl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index e5b6b9aa21d6..8223342e9b69 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1061,11 +1061,8 @@ for my $filename (@ARGV) { } while (<$FILE>) { chomp; - if ($vname eq 'Your patch') { - my ($subject) = $_ =~ /^Subject:\s*(.*)/; - $vname = '"' . $subject . '"' if $subject; - } push(@rawlines, $_); + $vname = qq("$1") if ($filename eq '-' && $_ =~ m/^Subject:\s+(.+)/i); } close($FILE);
| |