From f87e78fcf904688846c9d4490397f3bdf07d424f Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 4 May 2021 16:22:31 +0100 Subject: stop using struct vfio_device_info (#456) This struct from vfio.h has grown larger in newer Linux versions; this breaks older clients, as now the server would require the larger size. Replace with our own definition. Signed-off-by: John Levon Reviewed-by: Thanos Makatos --- test/unit-tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/unit-tests.c b/test/unit-tests.c index 28eec74..86cc11e 100644 --- a/test/unit-tests.c +++ b/test/unit-tests.c @@ -1237,8 +1237,8 @@ test_pci_ext_caps(void **state UNUSED) static void test_device_get_info(void **state UNUSED) { - struct vfio_device_info d_in = { .argsz = sizeof(d_in) + 1 }; - struct vfio_device_info *d_out; + struct vfio_user_device_info d_in = { .argsz = sizeof(d_in) + 1 }; + struct vfio_user_device_info *d_out; int ret; vfu_ctx.nr_regions = 0xdeadbeef; -- cgit v1.1