lkml.org 
[lkml]   [2020]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: + checkpatch-use-patch-subject-when-reading-from-stdin.patch added to -mm tree
From
Date
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);

\
 
 \ /
  Last update: 2020-05-08 20:28    [W:0.026 / U:1.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site