From e8e8bb79dd548063508528b527d67fa85baa1c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Wed, 11 Feb 2026 18:15:32 +0100 Subject: [PATCH] migration/cpr: Include vfio-cpr.h instead of vfio-device.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The file migration/cpr.c uses vmstate_cpr_vfio_devices which is declared in hw/vfio/vfio-cpr.h, not in hw/vfio/vfio-device.h. Replace the include with the correct header file to avoid pulling in unnecessary VFIO device declarations. Signed-off-by: Cédric Le Goater Reviewed-by: Peter Xu Link: https://lore.kernel.org/qemu-devel/20260211171532.1556719-1-clg@redhat.com Signed-off-by: Fabiano Rosas --- migration/cpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/cpr.c b/migration/cpr.c index adee2a919a..a0b37007f5 100644 --- a/migration/cpr.c +++ b/migration/cpr.c @@ -9,7 +9,7 @@ #include "qemu/error-report.h" #include "qapi/error.h" #include "qemu/error-report.h" -#include "hw/vfio/vfio-device.h" +#include "hw/vfio/vfio-cpr.h" #include "migration/cpr.h" #include "migration/misc.h" #include "migration/options.h"