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 --- samples/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'samples/client.c') diff --git a/samples/client.c b/samples/client.c index e27a323..fb69ce8 100644 --- a/samples/client.c +++ b/samples/client.c @@ -338,7 +338,7 @@ get_device_region_info(int sock, uint32_t index) } static void -get_device_regions_info(int sock, struct vfio_device_info *client_dev_info) +get_device_regions_info(int sock, struct vfio_user_device_info *client_dev_info) { unsigned int i; @@ -348,7 +348,7 @@ get_device_regions_info(int sock, struct vfio_device_info *client_dev_info) } static void -get_device_info(int sock, struct vfio_device_info *dev_info) +get_device_info(int sock, struct vfio_user_device_info *dev_info) { uint16_t msg_id = 0xb10c; int ret; @@ -1063,7 +1063,7 @@ int main(int argc, char *argv[]) { int ret, sock, irq_fd; struct vfio_user_dma_region *dma_regions; - struct vfio_device_info client_dev_info = {0}; + struct vfio_user_device_info client_dev_info = {0}; int *dma_region_fds; int i; FILE *fp; -- cgit v1.1