]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
migration/cpr: Include vfio-cpr.h instead of vfio-device.h
authorCédric Le Goater <clg@redhat.com>
Wed, 11 Feb 2026 17:15:32 +0000 (18:15 +0100)
committerFabiano Rosas <farosas@suse.de>
Tue, 17 Feb 2026 13:05:24 +0000 (10:05 -0300)
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 <clg@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20260211171532.1556719-1-clg@redhat.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/cpr.c

index adee2a919a364244867ef190fdf29bd1fe7e20e2..a0b37007f55d6dac32bd6220ffe65d32c4e6b52e 100644 (file)
@@ -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"