summaryrefslogtreecommitdiffstats
path: root/util/lint/checkpatch.pl
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-04-07 10:13:54 +0200
committerMartin L Roth <martinroth@google.com>2022-04-24 21:16:04 +0000
commit0b1a03cd180a6ca171e9a48aafe39cbfa482b203 (patch)
tree45de1e9c0ad209ffeb59da2d619c11409e1ec4e3 /util/lint/checkpatch.pl
parent41d43f5eebfb8ed43ca35c93e71229fe02f17024 (diff)
downloadcoreboot-0b1a03cd180a6ca171e9a48aafe39cbfa482b203.tar.gz
coreboot-0b1a03cd180a6ca171e9a48aafe39cbfa482b203.tar.bz2
coreboot-0b1a03cd180a6ca171e9a48aafe39cbfa482b203.zip
util/lint/checkpatch.pl: Update lines related to max_line_length
Upadate to v5.18-2 version. Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: Ib9927bfa98e20d4b621bf7abecec234b4754ee9c Reviewed-on: https://review.coreboot.org/c/coreboot/+/63439 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <martinroth@google.com>
Diffstat (limited to 'util/lint/checkpatch.pl')
-rwxr-xr-xutil/lint/checkpatch.pl12
1 files changed, 8 insertions, 4 deletions
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl
index 6a3023d25d20..a67e6b0ddffd 100755
--- a/util/lint/checkpatch.pl
+++ b/util/lint/checkpatch.pl
@@ -56,7 +56,7 @@ my @ignore = ();
my @exclude = (); #coreboot
my $help = 0;
my $configuration_file = ".checkpatch.conf";
-my $max_line_length = 80;
+my $max_line_length = 100;
my $ignore_perl_version = 0;
my $minimum_perl_version = 5.10.0;
my $min_conf_desc_length = 4;
@@ -111,7 +111,9 @@ Options:
--ignore TYPE(,TYPE2...) ignore various comma separated message types
--exclude DIR(,DIR22...) exclude directories
--show-types show the specific message type in the output
- --max-line-length=n set the maximum line length, if exceeded, warn
+ --max-line-length=n set the maximum line length, (default $max_line_length)
+ if exceeded, warn on patches
+ requires --strict for use with --file
--min-conf-desc-length=n set the min description length, if shorter, warn
--tab-size=n set the number of spaces for tab (default $tabsize)
--root=PATH PATH to the kernel tree root
@@ -3208,8 +3210,10 @@ sub process {
if ($msg_type ne "" &&
(show_type("LONG_LINE") || show_type($msg_type))) {
- WARN($msg_type,
- "line over $max_line_length characters\n" . $herecurr);
+ my $msg_level = \&WARN;
+ $msg_level = \&CHK if ($file);
+ &{$msg_level}($msg_type,
+ "line length of $length exceeds $max_line_length columns\n" . $herecurr);
}
}