[Linux-kernel-mentees] [PATCH v2] checkpatch: disable commit log length check warning for signature tag

Nachiket Naganure nachiketun8 at gmail.com
Tue Jul 28 11:29:00 UTC 2020

Disable commit log length check in case of signature tag. If the commit
log line has valid signature tags such as "Reported-and-tested-by" with
more than 75 characters, suppress the long length warning.

For instance in commit ac854131d984 ("USB: core: Fix misleading driver bug
report"), the corresponding patch contains a "Reported by" tag line which
exceeds 75 chars. And there is no valid way to shorten the length.

Signed-off-by: Nachiket Naganure <nachiketun8 at gmail.com>
 scripts/checkpatch.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 197436b20288..ef603f2d9dbf 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2806,6 +2806,8 @@ sub process {
 					# filename then :
 		      $line =~ /^\s*(?:Fixes:|Link:)/i ||
 					# A Fixes: or Link: line
+		      $line =~ /^\s*$signature_tags/ ||
+					# Check for signature tag
 		      $commit_log_possible_stack_dump)) {
 			     "Possible unwrapped commit description (prefer a maximum 75 chars per line)\n" . $herecurr);

More information about the Linux-kernel-mentees mailing list