diff mbox series

[05/10] vfio/pci: Make vfio_populate_vga static

Message ID 20250224182927.31519-6-tomitamoeko@gmail.com (mailing list archive)
State New
Headers show
Series vfio/igd: Remove legacy mode | expand

Commit Message

Tomita Moeko Feb. 24, 2025, 6:29 p.m. UTC
vfio_populate_vga is no longer called in igd.c. Make it static.

Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
---
 hw/vfio/pci.c | 2 +-
 hw/vfio/pci.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 89d900e9cf..1c45e3987e 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2662,7 +2662,7 @@  static VFIODeviceOps vfio_pci_ops = {
     .vfio_load_config = vfio_pci_load_config,
 };
 
-bool vfio_populate_vga(VFIOPCIDevice *vdev, Error **errp)
+static bool vfio_populate_vga(VFIOPCIDevice *vdev, Error **errp)
 {
     VFIODevice *vbasedev = &vdev->vbasedev;
     g_autofree struct vfio_region_info *reg_info = NULL;
diff --git a/hw/vfio/pci.h b/hw/vfio/pci.h
index 43c166680a..75505af6a3 100644
--- a/hw/vfio/pci.h
+++ b/hw/vfio/pci.h
@@ -226,8 +226,6 @@  bool vfio_pci_host_match(PCIHostDeviceAddress *addr, const char *name);
 int vfio_pci_get_pci_hot_reset_info(VFIOPCIDevice *vdev,
                                     struct vfio_pci_hot_reset_info **info_p);
 
-bool vfio_populate_vga(VFIOPCIDevice *vdev, Error **errp);
-
 bool vfio_pci_igd_opregion_init(VFIOPCIDevice *vdev,
                                 struct vfio_region_info *info,
                                 Error **errp);