mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
b3175081a1
commit
bb30277273
|
@ -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…
Reference in New Issue