diff options
Diffstat (limited to 'scripts/checkpatch.pl')
| -rwxr-xr-x | scripts/checkpatch.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 538105ae88b3..1ec68083a929 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
| @@ -1637,7 +1637,7 @@ sub process { | |||
| 1637 | my $signoff = 0; | 1637 | my $signoff = 0; |
| 1638 | my $is_patch = 0; | 1638 | my $is_patch = 0; |
| 1639 | 1639 | ||
| 1640 | my $in_header_lines = 1; | 1640 | my $in_header_lines = $file ? 0 : 1; |
| 1641 | my $in_commit_log = 0; #Scanning lines before patch | 1641 | my $in_commit_log = 0; #Scanning lines before patch |
| 1642 | 1642 | ||
| 1643 | my $non_utf8_charset = 0; | 1643 | my $non_utf8_charset = 0; |
| @@ -1993,7 +1993,8 @@ sub process { | |||
| 1993 | # Check if it's the start of a commit log | 1993 | # Check if it's the start of a commit log |
| 1994 | # (not a header line and we haven't seen the patch filename) | 1994 | # (not a header line and we haven't seen the patch filename) |
| 1995 | if ($in_header_lines && $realfile =~ /^$/ && | 1995 | if ($in_header_lines && $realfile =~ /^$/ && |
| 1996 | $rawline !~ /^(commit\b|from\b|[\w-]+:).+$/i) { | 1996 | !($rawline =~ /^\s+\S/ || |
| 1997 | $rawline =~ /^(commit\b|from\b|[\w-]+:).*$/i)) { | ||
| 1997 | $in_header_lines = 0; | 1998 | $in_header_lines = 0; |
| 1998 | $in_commit_log = 1; | 1999 | $in_commit_log = 1; |
| 1999 | } | 2000 | } |
