From: Zhenzhong Duan Date: Fri, 22 Sep 2023 02:52:23 +0000 (+0800) Subject: vfio/pci: rename vfio_put_device to vfio_pci_put_device X-Git-Tag: v8.2.0-rc0~83^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c06327c9db960158edc8756dbc0eb25fab920656;p=thirdparty%2Fqemu.git vfio/pci: rename vfio_put_device to vfio_pci_put_device vfio_put_device() is a VFIO PCI specific function, rename it with 'vfio_pci' prefix to avoid confusing. No functional change. Suggested-by: Cédric Le Goater Signed-off-by: Zhenzhong Duan Signed-off-by: Cédric Le Goater --- diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index 3b2ca3c24ca..b2d5010b9f0 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -2826,7 +2826,7 @@ static void vfio_populate_device(VFIOPCIDevice *vdev, Error **errp) } } -static void vfio_put_device(VFIOPCIDevice *vdev) +static void vfio_pci_put_device(VFIOPCIDevice *vdev) { g_free(vdev->vbasedev.name); g_free(vdev->msix); @@ -3317,7 +3317,7 @@ static void vfio_instance_finalize(Object *obj) * * g_free(vdev->igd_opregion); */ - vfio_put_device(vdev); + vfio_pci_put_device(vdev); vfio_put_group(group); }