diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-10-01 09:56:41 +0200 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-10-07 05:03:56 +0200 |
| commit | edd1f91d38dfc341cac02529fcd315609e959763 (patch) | |
| tree | 29b5acd3db786e747c3f0d7f64d974b6b0a021ff | |
| parent | d08bc190a0302d1fad8ca71a3ba13c51f7337bbf (diff) | |
| download | focaccia-qemu-edd1f91d38dfc341cac02529fcd315609e959763.tar.gz focaccia-qemu-edd1f91d38dfc341cac02529fcd315609e959763.zip | |
hw/vfio/listener: Include missing 'exec/target_page.h' header
The "exec/target_page.h" header is indirectly pulled from
"system/ram_addr.h". Include it explicitly, in order to
avoid unrelated issues when refactoring "system/ram_addr.h":
hw/vfio/listener.c: In function ‘vfio_ram_discard_register_listener’:
hw/vfio/listener.c:258:28: error: implicit declaration of function ‘qemu_target_page_size’; did you mean ‘qemu_ram_pagesize’?
258 | int target_page_size = qemu_target_page_size();
| ^~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Message-Id: <20251001175448.18933-5-philmd@linaro.org>
| -rw-r--r-- | hw/vfio/listener.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vfio/listener.c b/hw/vfio/listener.c index a2c19a3cec..b5cefc9395 100644 --- a/hw/vfio/listener.c +++ b/hw/vfio/listener.c @@ -25,6 +25,7 @@ #endif #include <linux/vfio.h> +#include "exec/target_page.h" #include "hw/vfio/vfio-device.h" #include "hw/vfio/pci.h" #include "system/address-spaces.h" |