Browse Source

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>
pull/254/head
Pierre Labatut 3 years ago
committed by Michael Tokarev
parent
commit
bb30277273
  1. 2
      subprojects/libvhost-user/libvhost-user.c

2
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;
/*

Loading…
Cancel
Save