]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
checkpatch: ignore target/hexagon/imported/* files
authorMatheus Tavares Bernardino <quic_mathbern@quicinc.com>
Tue, 20 Sep 2022 13:42:28 +0000 (10:42 -0300)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 29 Sep 2022 19:20:41 +0000 (21:20 +0200)
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 <quic_mathbern@quicinc.com>
Message-Id: <e3b6a345a88807a1c4daa45f638b2a90af538fd5.1663681339.git.quic_mathbern@quicinc.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
scripts/checkpatch.pl

index d900d1804891e40056f30c0952234f2b5f16ba2e..e3e3b4307608cda87ae23371c9b829db4e7ce285 100755 (executable)
@@ -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";