From 6ebb8d2a210f21c7d4f168564f812833320a8fc4 Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Tue, 9 Apr 2019 14:25:57 +0200 Subject: tests: qpci_unplug_acpi_device_test() should not rely on global_qtest libqos functions should not use functions that require global_qtest to be set, since such library functions could also be used by tests that deal with multiple test states. Add a parameter to this function to explicitly specify the test state. Reviewed-by: Eric Blake Message-Id: <20190508143209.24350-1-thuth@redhat.com> Signed-off-by: Thomas Huth --- tests/libqos/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/libqos/pci.h') diff --git a/tests/libqos/pci.h b/tests/libqos/pci.h index 8e1d292a7d..a5389a5845 100644 --- a/tests/libqos/pci.h +++ b/tests/libqos/pci.h @@ -123,7 +123,7 @@ QPCIBar qpci_iomap(QPCIDevice *dev, int barno, uint64_t *sizeptr); void qpci_iounmap(QPCIDevice *dev, QPCIBar addr); QPCIBar qpci_legacy_iomap(QPCIDevice *dev, uint16_t addr); -void qpci_unplug_acpi_device_test(const char *id, uint8_t slot); +void qpci_unplug_acpi_device_test(QTestState *qs, const char *id, uint8_t slot); void add_qpci_address(QOSGraphEdgeOptions *opts, QPCIAddress *addr); #endif -- cgit 1.4.1