diff options
author | John Levon <john.levon@nutanix.com> | 2021-05-04 16:22:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 16:22:31 +0100 |
commit | f87e78fcf904688846c9d4490397f3bdf07d424f (patch) | |
tree | ba77308e16bacbfc228c12800500dcbbab143761 /test | |
parent | 1b8f3e66037b3cb59fec6c0fe778c8b3734b7093 (diff) | |
download | libvfio-user-f87e78fcf904688846c9d4490397f3bdf07d424f.zip libvfio-user-f87e78fcf904688846c9d4490397f3bdf07d424f.tar.gz libvfio-user-f87e78fcf904688846c9d4490397f3bdf07d424f.tar.bz2 |
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 <john.levon@nutanix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/unit-tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |