On Tue, 2020-05-05 at 12:18 -0700, [email protected] 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 <[email protected]>
---
 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);
 

Reply via email to