diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-04-12 19:54:37 +0200 |
---|---|---|
committer | Martin L Roth <martinroth@google.com> | 2022-04-24 21:15:33 +0000 |
commit | 41d43f5eebfb8ed43ca35c93e71229fe02f17024 (patch) | |
tree | a9fe4ebd0340eba1b6338c818ca3713ba4d17aff | |
parent | 46b07e53f5564f5261676124d39e6c1df94513ec (diff) |
util/lint/checkpatch.pl: Update lines related to tabsize
Update to v5.18-2 version.
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Change-Id: I6651a3f8e79beca2e1235fe8de3217875f81ba2b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63438
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <martinroth@google.com>
-rwxr-xr-x | util/lint/checkpatch.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl index df952c9646..6a3023d25d 100755 --- a/util/lint/checkpatch.pl +++ b/util/lint/checkpatch.pl @@ -113,6 +113,7 @@ Options: --show-types show the specific message type in the output --max-line-length=n set the maximum line length, if exceeded, warn --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 --no-summary suppress the per-file summary --mailback only produce a report in case of warnings/errors @@ -308,6 +309,7 @@ GetOptions( 'list-types!' => \$list_types, 'max-line-length=i' => \$max_line_length, 'min-conf-desc-length=i' => \$min_conf_desc_length, + 'tab-size=i' => \$tabsize, 'root=s' => \$root, 'summary!' => \$summary, 'mailback!' => \$mailback, @@ -387,6 +389,9 @@ if ($#ARGV < 0) { push(@ARGV, '-'); } +# skip TAB size 1 to avoid additional checks on $tabsize - 1 +die "$P: Invalid TAB size: $tabsize\n" if ($tabsize < 2); + if ($color =~ /^[01]$/) { $color = !$color; } elsif ($color =~ /^always$/i) { |