]> git.proxmox.com Git - mirror_qemu.git/commitdiff
checkpatch: reversed logic with acpi test checks
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 2 Jun 2020 05:36:17 +0000 (01:36 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Jun 2020 15:20:14 +0000 (11:20 -0400)
Logic reversed: allowed list should just be ignored. Instead we
only take that into account :(

Fixes: e11b06a880ca ("checkpatch: ignore allowed diff list")
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20200602053614.54745-1-mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/checkpatch.pl

index 0ba213e9f27c80994d3281bd2f7fb25e7c864444..2d2e922d89cd4c9a272915ec127367c064b667a0 100755 (executable)
@@ -1267,7 +1267,7 @@ sub checkfilename {
         # files and when changing tests.
        if ($name =~ m#^tests/data/acpi/# and not $name =~ m#^\.sh$#) {
                $$acpi_testexpected = $name;
-       } elsif ($name =~ m#^tests/qtest/bios-tables-test-allowed-diff.h$#) {
+       } elsif ($name !~ m#^tests/qtest/bios-tables-test-allowed-diff.h$#) {
                $$acpi_nontestexpected = $name;
        }
        if (defined $$acpi_testexpected and defined $$acpi_nontestexpected) {