aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2021-09-24 17:56:51 +0200
committerAlex Williamson <[email protected]>2021-09-30 12:46:43 -0600
commit38a68934aa72459217986cf6b461d87f7602648a (patch)
tree70e9c2f21cc898cfc658048cd6a60533579a2653 /include/linux
parent5816b3e6577eaa676ceb00a848f0fd65fe2adc29 (diff)
vfio: Move vfio_iommu_group_get() to vfio_register_group_dev()
We don't need to hold a reference to the group in the driver as well as obtain a reference to the same group as the first thing vfio_register_group_dev() does. Since the drivers never use the group move this all into the core code. Signed-off-by: Jason Gunthorpe <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/vfio.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/vfio.h b/include/linux/vfio.h
index b53a9557884a..f7083c2fd0d0 100644
--- a/include/linux/vfio.h
+++ b/include/linux/vfio.h
@@ -71,9 +71,6 @@ struct vfio_device_ops {
int (*match)(struct vfio_device *vdev, char *buf);
};
-extern struct iommu_group *vfio_iommu_group_get(struct device *dev);
-extern void vfio_iommu_group_put(struct iommu_group *group, struct device *dev);
-
void vfio_init_group_dev(struct vfio_device *device, struct device *dev,
const struct vfio_device_ops *ops);
void vfio_uninit_group_dev(struct vfio_device *device);