diff options
author | Matthew Rosato <mjrosato@linux.ibm.com> | 2023-02-03 16:50:27 -0500 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-02-09 11:41:25 -0700 |
commit | b0d2d5697e4c12589ef536b2a824f6549fdb2c01 (patch) | |
tree | 33128ea8e7e609efc2024ccafe267de33c99594e /drivers/vfio/vfio.h | |
parent | 2b48f52f2bff8e8926165983f3a3d7b89b33de08 (diff) | |
download | linux-stable-b0d2d5697e4c12589ef536b2a824f6549fdb2c01.tar.gz linux-stable-b0d2d5697e4c12589ef536b2a824f6549fdb2c01.tar.bz2 linux-stable-b0d2d5697e4c12589ef536b2a824f6549fdb2c01.zip |
vfio: no need to pass kvm pointer during device open
Nothing uses this value during vfio_device_open anymore so it's safe
to remove it.
Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Tested-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20230203215027.151988-3-mjrosato@linux.ibm.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/vfio.h')
-rw-r--r-- | drivers/vfio/vfio.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/vfio/vfio.h b/drivers/vfio/vfio.h index 8ec3a5db23f5..e9721d8424bc 100644 --- a/drivers/vfio/vfio.h +++ b/drivers/vfio/vfio.h @@ -18,8 +18,7 @@ struct vfio_container; void vfio_device_put_registration(struct vfio_device *device); bool vfio_device_try_get_registration(struct vfio_device *device); -int vfio_device_open(struct vfio_device *device, - struct iommufd_ctx *iommufd, struct kvm *kvm); +int vfio_device_open(struct vfio_device *device, struct iommufd_ctx *iommufd); void vfio_device_close(struct vfio_device *device, struct iommufd_ctx *iommufd); |