From b8234a75d9ec2c95cb889c0cef27927f34ad9cbc Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 2 Jun 2021 15:04:10 +0100 Subject: clean up migration register definitions (#550) We should explicitly define the expected migration register contents for API users who aren't using the callbacks. Clean up some related lint. Signed-off-by: John Levon Reviewed-by: Thanos Makatos --- test/unit-tests.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/unit-tests.c b/test/unit-tests.c index d334244..9e3fe00 100644 --- a/test/unit-tests.c +++ b/test/unit-tests.c @@ -541,7 +541,8 @@ setup_test_setup_migration_region(void **state) if (p->v == NULL) { return -1; } - p->rs = ROUND_UP(sizeof(struct vfio_device_migration_info), sysconf(_SC_PAGE_SIZE)); + p->rs = ROUND_UP(sizeof(struct vfio_user_migration_info), + sysconf(_SC_PAGE_SIZE)); p->ds = sysconf(_SC_PAGE_SIZE); p->s = p->rs + p->ds; *state = p; -- cgit v1.1