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

[PATCH for-4.17 2/6] test/vpci: fix vPCI test harness to provide pci_get_pdev()


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Date: Thu, 20 Oct 2022 11:46:45 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c55b8Y3FjLXBmFEK2e5vgOav21j93/W+nW7shNB4ico=; b=BZWSDVUQtLN/IGapOPy0aPwsHHx98HU6Oz1RA5CjdFfBe0btMVQY3m1ZCr5vchD//1eydWM8sAt9qP483ILCn1nbgUrjlM4gxFoVmQdiy4gPxPYJrFif9sWTAiNdkZx8bYEyxeJf/8jXAoAlLiTOC4HNxlj6DjvsoX+/ykvl9RoPV3FJJSzNcGMHy5pzkGtlwOm00v43x15fEhtprMZv0pED4U8R1wTq0IKP5bxVBwy5bT9shtSjW+wPBGcSKxscpIhKungsf2TZuaKHKDM+0Ampm0SxM7tALbHscypguXf+7MiJpdOx2bHfcQMP2nNHPUCDjxeVe4HfXdoj+t0T+A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FN0k2f0SLt+yLEzYvl0FcivMxOLn9YFP+fUBcFXm4BZ7+UjGHR5zOhDuzINvW56WbYhV7tjUMzt9nAOkuNjCr/uPtktUT76iHFZez7AVnilmS2FfaCQzR6OcMtMK3KWy5Fl2nFACYgvDnbWDMPkcEdgQg1lC52KYJ3PS5iFpeC5NVdCBua0Re2+UniEf6HRzAWRqfgPPEF7uI0JIH3RZULWgGhJ42nQK3m2Zllxnf5NeaiUgF2FS6Gu1Ssrx6I/V314N3vNK8fAQTOnKSlHZcv98wmlt4wNRedehFxGX5oQSdirpiteaBzGqLDjBWb/YZ4LYzPWpiU2g0zdwXW6btQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Thu, 20 Oct 2022 09:47:31 +0000
  • Ironport-data: A9a23:+6RAi6y20m/RSUo74j56t+c5xyrEfRIJ4+MujC+fZmUNrF6WrkVRy mpMXmuEMv+LMzbyc9B/ao+/o09QsZLXmN9kHlFtryAxQypGp/SeCIXCJC8cHc8wwu7rFxs7s ppEOrEsCOhuExcwcz/0auCJQUFUjP3OHPykYAL9EngZbRd+Tys8gg5Ulec8g4p56fC0GArIs t7pyyHlEAbNNwVcbyRFtspvlDs15K6o4WtC5gRnDRx2lAS2e0c9Xcp3yZ6ZdxMUcqEMdsamS uDKyq2O/2+x13/B3fv8z94X2mVTKlLjFVDmZkh+AsBOsTAbzsAG6Y4pNeJ0VKtio27hc+ada jl6ncfYpQ8BZsUgkQmGOvVSO3kW0aZuoNcrLZUj2CA6IoKvn3bEmp1T4E8K0YIw9vkoJEZ39 uMhLzEQPjCqrbq/mfG0Rbw57igjBJGD0II3nFhFlWucNtB/BJfJTuPN+MNS2yo2ioZWB/HCa sEFaD1pKhPdfxlIPVRRA5U79AuqriCnL3sE9xTI+uxrsgA/zyQouFTpGMDSddGQA91cg26Tp 37c/nS/CRYfXDCa4Wreryzx1rGU9c/9cMENOPrj8r1RvG3N9FNKKloRcgS9//bs3yZSXPoac ST44BEGvaU0sUCmUNT5dxm5u2Kf+A4RXcJKFO834x3LzbDbiy6GAkAUQzgHb8Yp3PLaXhQv3 16N2sjvXDVpubjNE3aFrO/I/HW1JDQfKnIEaWkcVwwZ7tL/oYY1yBXSUtJkF63zhdrwcd3t/ w23QOEFr+17paY2O2+TpDgrXxrESkD1czMI
  • Ironport-hdrordr: A9a23:Q8pEvKP9U+Lgh8BcT1r155DYdb4zR+YMi2TDiHoddfUFSKalfp 6V98jztSWatN/eYgBDpTnmAtj7fZq8z+8P3WB1B9uftWbdyQ+Vxe1ZjbcKhgeQYhEWldQtqp uIDZIOb+EYZGIS5aia3OD7KadZ/DDuytHVuQ609QYJcegFUdAC0+8vYTzrb3GeCTM2c6YRJd 653I5qtjCgcXMYYoCSAWQEZfHKo5numIj9aRALKhY74E3W5AnYoILSIly95FMzQjlPybAt/S zslBH43Lyqt7WexgXH32HewpxKkJ/Ky8dFBuaLls8JQw+cwzqAVcBEYfmvrTo1qOag5BIDl8 TNmQ4pO4BJ53bYbgiO0G7Q8jil9Axrx27pyFeej3emi9f+XigGB81Igp8cWgfF6mI71esMnJ 5j7ia8jd56HBnAlCPy65zjTBdxjHe5pnIkjKo6k2Ffa40Dc7VcxLZvsX+9KK1wUh4S1bpXUd WHVKrnlbZrmBKhHjrkV1BUsZORti9ZJGbEfqAA0vbloQS+0koJjXfw//Zv7kvoxKhNNaWs2N 60Q5iA7Is+KPP+TZgNcNvpEvHHfVDlcFbrDF+4B2jBOeUuB0/twqSHk4ndotvaM6A18A==
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

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>
---
 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
-- 
2.37.3




 


Rackspace

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