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:
parent
3966bca539
commit
d59ca1ca17
@ -1165,7 +1165,7 @@ static int hiod_legacy_vfio_get_cap(HostIOMMUDevice *hiod, int cap,
|
||||
}
|
||||
|
||||
static GList *
|
||||
hiod_legacy_vfio_get_iova_ranges(HostIOMMUDevice *hiod, Error **errp)
|
||||
hiod_legacy_vfio_get_iova_ranges(HostIOMMUDevice *hiod)
|
||||
{
|
||||
VFIODevice *vdev = hiod->agent;
|
||||
|
||||
|
@ -644,7 +644,7 @@ static bool hiod_iommufd_vfio_realize(HostIOMMUDevice *hiod, void *opaque,
|
||||
}
|
||||
|
||||
static GList *
|
||||
hiod_iommufd_vfio_get_iova_ranges(HostIOMMUDevice *hiod, Error **errp)
|
||||
hiod_iommufd_vfio_get_iova_ranges(HostIOMMUDevice *hiod)
|
||||
{
|
||||
VFIODevice *vdev = hiod->agent;
|
||||
|
||||
|
@ -635,7 +635,7 @@ static bool virtio_iommu_set_iommu_device(PCIBus *bus, void *opaque, int devfn,
|
||||
|
||||
if (hiodc->get_iova_ranges) {
|
||||
int ret;
|
||||
host_iova_ranges = hiodc->get_iova_ranges(hiod, errp);
|
||||
host_iova_ranges = hiodc->get_iova_ranges(hiod);
|
||||
if (!host_iova_ranges) {
|
||||
return true; /* some old kernels may not support that capability */
|
||||
}
|
||||
|
@ -87,9 +87,8 @@ struct HostIOMMUDeviceClass {
|
||||
* @hiod 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);
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user