From: Matheus Tavares Bernardino Date: Tue, 20 Sep 2022 13:42:28 +0000 (-0300) Subject: checkpatch: ignore target/hexagon/imported/* files X-Git-Tag: v7.2.0-rc0~63^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=321b0ca353a2cb568ed7807ff6b64ad97101ee1e;p=thirdparty%2Fqemu.git checkpatch: ignore target/hexagon/imported/* files These files come from an external project (the hexagon archlib), so they deliberately do not follow QEMU's coding style. To avoid false positives from checkpatch.pl, let's disable the checking for those. Signed-off-by: Matheus Tavares Bernardino Message-Id: Signed-off-by: Laurent Vivier --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index d900d180489..e3e3b430760 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1667,6 +1667,7 @@ sub process { # some scripts we imported from other projects. next if ($realfile =~ /\.(s|S)$/); next if ($realfile =~ /(checkpatch|get_maintainer)\.pl$/); + next if ($realfile =~ /^target\/hexagon\/imported\/*/); if ($rawline =~ /^\+.*\t/) { my $herevet = "$here\n" . cat_vet($rawline) . "\n";