diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 776e19365c57..4c655c2c9ed1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1726,7 +1726,7 @@ sub process { $subjectline = $line; $sublinenr = "#$linenr & "; # Check for Subject line less than line limit - if (length($1) > SHORTTEXT_LIMIT) { + if (length($1) > SHORTTEXT_LIMIT && !($1 =~ m/Revert\ \"/)) { WARN("LONG_SUMMARY_LINE", "summary line over " . SHORTTEXT_LIMIT . @@ -1738,7 +1738,7 @@ sub process { # headers so we are now in the shorttext. $shorttext = IN_SHORTTEXT_BLANKLINE; $shorttext_exspc = 4; - if (length($1) > SHORTTEXT_LIMIT) { + if (length($1) > SHORTTEXT_LIMIT && !($1 =~ m/Revert\ \"/)) { WARN("LONG_SUMMARY_LINE", "summary line over " . SHORTTEXT_LIMIT .