From bb30277273fdacff4635a59d5181f7a093cab6a8 Mon Sep 17 00:00:00 2001 From: Pierre Labatut Date: Thu, 28 Sep 2023 12:56:59 +0000 Subject: [PATCH] Fix compilation when UFFDIO_REGISTER is not set. Signed-off-by: Pierre Labatut Signed-off-by: Michael Tokarev --- subprojects/libvhost-user/libvhost-user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/libvhost-user/libvhost-user.c b/subprojects/libvhost-user/libvhost-user.c index 051a611da3c..ac6d5d01d3a 100644 --- a/subprojects/libvhost-user/libvhost-user.c +++ b/subprojects/libvhost-user/libvhost-user.c @@ -631,9 +631,9 @@ static bool generate_faults(VuDev *dev) { unsigned int i; for (i = 0; i < dev->nregions; i++) { +#ifdef UFFDIO_REGISTER VuDevRegion *dev_region = &dev->regions[i]; int ret; -#ifdef UFFDIO_REGISTER struct uffdio_register reg_struct; /* -- 2.39.5