mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
vfio: Make vfio_group_list static
vfio_group_list is only used in file "container.c". Reviewed-by: John Levon <john.levon@nutanix.com> Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Link: https://lore.kernel.org/qemu-devel/20250318095415.670319-13-clg@redhat.com Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-14-clg@redhat.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
aa90d775f0
commit
0778f9b3be
2 changed files with 2 additions and 3 deletions
|
@ -34,7 +34,8 @@
|
|||
#include "pci.h"
|
||||
#include "hw/vfio/vfio-container.h"
|
||||
|
||||
VFIOGroupList vfio_group_list =
|
||||
typedef QLIST_HEAD(VFIOGroupList, VFIOGroup) VFIOGroupList;
|
||||
static VFIOGroupList vfio_group_list =
|
||||
QLIST_HEAD_INITIALIZER(vfio_group_list);
|
||||
|
||||
static int vfio_ram_block_discard_disable(VFIOContainer *container, bool state)
|
||||
|
|
|
@ -146,9 +146,7 @@ int vfio_kvm_device_del_fd(int fd, Error **errp);
|
|||
bool vfio_cpr_register_container(VFIOContainerBase *bcontainer, Error **errp);
|
||||
void vfio_cpr_unregister_container(VFIOContainerBase *bcontainer);
|
||||
|
||||
typedef QLIST_HEAD(VFIOGroupList, VFIOGroup) VFIOGroupList;
|
||||
typedef QLIST_HEAD(VFIODeviceList, VFIODevice) VFIODeviceList;
|
||||
extern VFIOGroupList vfio_group_list;
|
||||
extern VFIODeviceList vfio_device_list;
|
||||
extern const MemoryListener vfio_memory_listener;
|
||||
extern int vfio_kvm_device_fd;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue