scripts/checkpatch.pl: warn on invalid credentials

@quicinc.com identities are not allowed.  Check the "From:" field in the
patch, equivalent to the author in the git commit, and the Signed-off-by
field.

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
(cherry picked from commit 374146d3656f815f45145861396df4ee35f60cec)
This commit is contained in:
Bryan Huntsman
2010-05-04 17:31:32 -07:00
committed by Stephen Boyd
parent 5bdba0fdc2
commit 7324a38d16

View File

@@ -1714,6 +1714,14 @@ sub process {
"email address '$email' might be better as '$suggested_email$comment'\n" . $herecurr);
}
}
if ($line =~ /^\s*signed-off-by:.*quicinc\.com/i) {
WARN("invalid Signed-off-by identity\n" . $line );
}
}
#check the patch for invalid author credentials
if ($line =~ /^From:.*quicinc\.com/) {
WARN("invalid author identity\n" . $line );
}
# Check for wrappage within a valid hunk of the file