[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] test/vpci: fix vPCI test harness to provide pci_get_pdev()



commit 1cfccd4b07dd1cf38290d930e2b687c031589db3
Author:     Roger Pau Monné <roger.pau@xxxxxxxxxx>
AuthorDate: Thu Oct 20 16:37:15 2022 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Oct 20 16:37:15 2022 +0200

    test/vpci: fix vPCI test harness to provide pci_get_pdev()
    
    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@xxxxxxxxxx>
    Acked-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
    Release-acked-by: Henry Wang <Henry.Wang@xxxxxxx>
---
 tools/tests/vpci/emul.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tests/vpci/emul.h b/tools/tests/vpci/emul.h
index 386b15eb86..f03e3a56d1 100644
--- a/tools/tests/vpci/emul.h
+++ b/tools/tests/vpci/emul.h
@@ -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
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.