'vfio_device_list' is VFIODevice related. Move its definitions into "device.c".
Reviewed-by: John Levon <john.le...@nutanix.com> Link: https://lore.kernel.org/qemu-devel/20250318095415.670319-23-...@redhat.com Reviewed-by: Zhenzhong Duan <zhenzhong.d...@intel.com> Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-24-...@redhat.com Signed-off-by: Cédric Le Goater <c...@redhat.com> --- hw/vfio/common.c | 3 --- hw/vfio/device.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index 84a9a37d9d26cf24b7ea9e07ac040c0dc283a5ba..4e7d8e83ac72050f874e56143a9a4bc4527b0bda 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -46,9 +46,6 @@ #include "vfio-migration-internal.h" #include "vfio-helpers.h" -VFIODeviceList vfio_device_list = - QLIST_HEAD_INITIALIZER(vfio_device_list); - /* * Device state interfaces */ diff --git a/hw/vfio/device.c b/hw/vfio/device.c index 21c6824430c49170b8d1b9a69ff51272f48096a4..25fdba10a882e35392f26a107509f80e4b1c880a 100644 --- a/hw/vfio/device.c +++ b/hw/vfio/device.c @@ -31,6 +31,9 @@ #include "monitor/monitor.h" #include "vfio-helpers.h" +VFIODeviceList vfio_device_list = + QLIST_HEAD_INITIALIZER(vfio_device_list); + /* * Common VFIO interrupt disable */ -- 2.49.0