Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63438 )
Change subject: util/lint/checkpatch.pl: Update lines related to tabsize ......................................................................
util/lint/checkpatch.pl: Update lines related to tabsize
Signed-off-by: Elyes Haouas ehaouas@noos.fr Change-Id: I6651a3f8e79beca2e1235fe8de3217875f81ba2b --- M util/lint/checkpatch.pl 1 file changed, 4 insertions(+), 11 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/63438/1
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl index 65c2b5b..6a9c345 100755 --- a/util/lint/checkpatch.pl +++ b/util/lint/checkpatch.pl @@ -113,6 +113,7 @@ --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 @@ '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,17 +389,8 @@ push(@ARGV, '-'); }
-if ($color =~ /^[01]$/) { - $color = !$color; -} elsif ($color =~ /^always$/i) { - $color = 1; -} elsif ($color =~ /^never$/i) { - $color = 0; -} elsif ($color =~ /^auto$/i) { - $color = (-t STDOUT); -} else { - die "Invalid color mode: $color\n"; -} +# skip TAB size 1 to avoid additional checks on $tabsize - 1 +die "$P: Invalid TAB size: $tabsize\n" if ($tabsize < 2);
sub hash_save_array_words { my ($hashRef, $arrayRef) = @_;