Skip to content

Commit b4749e9

Browse files
JoePerchestorvalds
authored andcommitted
checkpatch: fix long line messages about patch context
Changes in ("checkpatch: categorize some long line length checks") now erroneously reports long line defects in patch context. Fix it. Signed-off-by: Joe Perches <[email protected]> Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent f2abeef commit b4749e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/checkpatch.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2599,7 +2599,7 @@ sub process {
25992599
# if LONG_LINE is ignored, the other 2 types are also ignored
26002600
#
26012601

2602-
if ($length > $max_line_length) {
2602+
if ($line =~ /^\+/ && $length > $max_line_length) {
26032603
my $msg_type = "LONG_LINE";
26042604

26052605
# Check the allowed long line types first

0 commit comments

Comments
 (0)