HostIOMMUDevice : remove Error handle from get_iova_ranges callback

The error handle argument is not used anywhere. let's remove it.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Eric Auger 2024-07-01 10:48:55 +02:00 committed by Cédric Le Goater
parent 3966bca539
commit d59ca1ca17
4 changed files with 4 additions and 5 deletions

View File

@ -1165,7 +1165,7 @@ static int hiod_legacy_vfio_get_cap(HostIOMMUDevice *hiod, int cap,
} }
static GList * static GList *
hiod_legacy_vfio_get_iova_ranges(HostIOMMUDevice *hiod, Error **errp) hiod_legacy_vfio_get_iova_ranges(HostIOMMUDevice *hiod)
{ {
VFIODevice *vdev = hiod->agent; VFIODevice *vdev = hiod->agent;

View File

@ -644,7 +644,7 @@ static bool hiod_iommufd_vfio_realize(HostIOMMUDevice *hiod, void *opaque,
} }
static GList * static GList *
hiod_iommufd_vfio_get_iova_ranges(HostIOMMUDevice *hiod, Error **errp) hiod_iommufd_vfio_get_iova_ranges(HostIOMMUDevice *hiod)
{ {
VFIODevice *vdev = hiod->agent; VFIODevice *vdev = hiod->agent;

View File

@ -635,7 +635,7 @@ static bool virtio_iommu_set_iommu_device(PCIBus *bus, void *opaque, int devfn,
if (hiodc->get_iova_ranges) { if (hiodc->get_iova_ranges) {
int ret; int ret;
host_iova_ranges = hiodc->get_iova_ranges(hiod, errp); host_iova_ranges = hiodc->get_iova_ranges(hiod);
if (!host_iova_ranges) { if (!host_iova_ranges) {
return true; /* some old kernels may not support that capability */ return true; /* some old kernels may not support that capability */
} }

View File

@ -87,9 +87,8 @@ struct HostIOMMUDeviceClass {
* @hiod Host IOMMU device * @hiod Host IOMMU device
* *
* @hiod: handle to the host IOMMU device * @hiod: handle to the host IOMMU device
* @errp: error handle
*/ */
GList* (*get_iova_ranges)(HostIOMMUDevice *hiod, Error **errp); GList* (*get_iova_ranges)(HostIOMMUDevice *hiod);
}; };
/* /*