]> xenbits.xensource.com Git - xen.git/commitdiff
test/vpci: fix vPCI test harness to provide pci_get_pdev()
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 20 Oct 2022 14:37:15 +0000 (16:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 20 Oct 2022 14:37:15 +0000 (16:37 +0200)
Instead of pci_get_pdev_by_domain(), which is no longer present in the
hypervisor.

While there add parentheses around the define value.

Fixes: a37f9ea7a6 ('PCI: fold pci_get_pdev{,_by_domain}()')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
tools/tests/vpci/emul.h

index 386b15eb867d06c6dd0eec1abd0311f069118e2c..f03e3a56d18121184f725c6003943fdb7c5e40eb 100644 (file)
@@ -92,7 +92,7 @@ typedef union {
 #define xmalloc(type) ((type *)malloc(sizeof(type)))
 #define xfree(p) free(p)
 
-#define pci_get_pdev_by_domain(...) &test_pdev
+#define pci_get_pdev(...) (&test_pdev)
 #define pci_get_ro_map(...) NULL
 
 #define test_bit(...) false