summaryrefslogtreecommitdiffstats
path: root/util/lint/checkpatch.pl
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2022-04-12 12:55:43 +0200
committerMartin L Roth <martinroth@google.com>2022-04-24 21:18:11 +0000
commit8f59960fb27d47e16e30ef7967e698d058ebc670 (patch)
treea59bfd9c04cdd43bdbb07def927d33f3b9114f0b /util/lint/checkpatch.pl
parent00d8ffdada376a0402f5088b927ea59162dffd06 (diff)
downloadcoreboot-8f59960fb27d47e16e30ef7967e698d058ebc670.tar.gz
coreboot-8f59960fb27d47e16e30ef7967e698d058ebc670.tar.bz2
coreboot-8f59960fb27d47e16e30ef7967e698d058ebc670.zip
util/lint/checkpatch.pl: Update C99_COMMENT_TOLERANCE lines
Update to v5.18-2 version. Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Change-Id: If230fa5cd01ab3ce91d8c910667c3d609cf978b0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63580 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.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl
index b1cb5249a233..1b9a3d4e672a 100755
--- a/util/lint/checkpatch.pl
+++ b/util/lint/checkpatch.pl
@@ -68,7 +68,7 @@ my $conststructsfile = "$D/const_structs.checkpatch";
my $docsfile = "";
my $typedefsfile;
my $color = "auto";
-my $allow_c99_comments = 1;
+my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE
my $git_command ='git'; # coreboot
my $tabsize = 8;
my ${CONFIG_} = "CONFIG_";
@@ -1130,6 +1130,7 @@ if ($git) {
}
my $vname;
+$allow_c99_comments = !defined $ignore_type{"C99_COMMENT_TOLERANCE"};
for my $filename (@ARGV) {
my $FILE;