[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/13] Fix compilation when UFFDIO_REGISTER is not set.
From: |
Michael Tokarev |
Subject: |
[PULL 03/13] Fix compilation when UFFDIO_REGISTER is not set. |
Date: |
Wed, 11 Oct 2023 14:20:44 +0300 |
From: Pierre Labatut <plabatut@google.com>
Signed-off-by: Pierre Labatut <plabatut@google.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
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 051a611da3..ac6d5d01d3 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.2
- [PULL 00/13] Trivial patches for 2023-10-11, Michael Tokarev, 2023/10/11
- [PULL 04/13] MAINTAINERS: Add g364fb and ds1225y to the Jazz section, Michael Tokarev, 2023/10/11
- [PULL 03/13] Fix compilation when UFFDIO_REGISTER is not set.,
Michael Tokarev <=
- [PULL 05/13] MAINTAINERS: Add unowned RISC-V related files to the right sections, Michael Tokarev, 2023/10/11
- [PULL 06/13] MAINTAINERS: Add include folder to the hw/char/ section, Michael Tokarev, 2023/10/11
- [PULL 07/13] MAINTAINERS: Add the CI-related doc files to the CI section, Michael Tokarev, 2023/10/11
- [PULL 09/13] MAINTAINERS: Add section for overall sensors, Michael Tokarev, 2023/10/11
- [PULL 10/13] MAINTAINERS: Add some unowned files to the SBSA-REF section, Michael Tokarev, 2023/10/11
- [PULL 11/13] roms: use PYTHON to invoke python, Michael Tokarev, 2023/10/11
- [PULL 08/13] MAINTAINERS: add standard-headers to Hosts/LINUX, Michael Tokarev, 2023/10/11
- [PULL 12/13] scripts/xml-preprocess: Make sure this script is invoked via the right Python, Michael Tokarev, 2023/10/11
- [PULL 13/13] cpus: Remove unused smp_cores/smp_threads declarations, Michael Tokarev, 2023/10/11