checkpatch-extend-author-signed-off-by-check-for-split-from-header.patch removed from -mm tree
The patch titled
Subject: checkpatch: extend author Signed-off-by check for split From: header
has been removed from the -mm tree. Its filename was
checkpatch-extend-author-signed-off-by-check-for-split-from-header.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Dwaipayan Ray <[email protected]>
Subject: checkpatch: extend author Signed-off-by check for split From: header
Checkpatch did not handle cases where the author From: header was split into multiple lines. The author identity could not be resolved and checkpatch generated a false NO_AUTHOR_SIGN_OFF warning.
A typical example is commit e33bcbab16d1 ("tee: add support for session's client UUID generation"). When checkpatch was run on this commit, it displayed:
"WARNING:NO_AUTHOR_SIGN_OFF: Missing Signed-off-by: line by nominal patch author ''"
This was due to split header lines not being handled properly and the author himself wrote in commit cd2614967d8b ("checkpatch: warn if missing author Signed-off-by"):
"Split From: headers are not fully handled: only the first part is compared."
Support split From: headers by correctly parsing the header extension lines. RFC 5322, Section-2.2.3 stated that each extended line must start with a WSP character (a space or htab). The solution was therefore to concatenate the lines which start with a WSP to get the correct long header.
---
scripts/checkpatch.pl | 4 ++++ 1 file changed, 4 insertions(+)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-extend-author-signed-off-by-check-for-split-from-header +4 -0
@@ -2679,6 +2679,10 @@ sub process { # Check the patch for a From: if (decode("MIME-Header", $line) =~ /^From:\s*(.*)/) { $author = $1; + my $curline = $linenr; + while(defined($rawlines[$curline]) && ($rawlines[$curline++] =~ /^[ \t]\s*(.*)/)) { + $author .= $1; + } $author = encode("utf8", $author) if ($line =~ /=\?utf-8\?/i); $author =~ s/"//g; $author = reformat_email($author);
_
Patches currently in -mm which might be from [email protected] are