Skip to content

Commit

Permalink
Fix compilation when UFFDIO_REGISTER is not set.
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Labatut <plabatut@google.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
  • Loading branch information
piwicode authored and Michael Tokarev committed Oct 11, 2023
1 parent b317508 commit bb30277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subprojects/libvhost-user/libvhost-user.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit bb30277

Please sign in to comment.