diff options
author | Pierre Labatut <plabatut@google.com> | 2023-09-28 12:56:59 +0000 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-10-12 00:37:39 +0300 |
commit | bb30277273fdacff4635a59d5181f7a093cab6a8 (patch) | |
tree | ff1392671e010a44850c712771d888a02f78661c | |
parent | b3175081a1215339b741ee92a00d5678a3094249 (diff) | |
download | qemu-bb30277273fdacff4635a59d5181f7a093cab6a8.zip qemu-bb30277273fdacff4635a59d5181f7a093cab6a8.tar.gz qemu-bb30277273fdacff4635a59d5181f7a093cab6a8.tar.bz2 |
Fix compilation when UFFDIO_REGISTER is not set.
Signed-off-by: Pierre Labatut <plabatut@google.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r-- | subprojects/libvhost-user/libvhost-user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subprojects/libvhost-user/libvhost-user.c b/subprojects/libvhost-user/libvhost-user.c index 051a611..ac6d5d0 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; /* |