aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mdev.h
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2022-09-23 11:26:47 +0200
committerGravatar Alex Williamson <alex.williamson@redhat.com> 2022-10-04 12:06:58 -0600
commitc7c1f38f6cba7e3249866c06639ea62755f0a24e (patch)
tree4266150081c8535a130ab2ec68ccac5bc9532cdb /include/linux/mdev.h
parentvfio/mdev: remove mdev_parent_dev (diff)
downloadlinux-c7c1f38f6cba7e3249866c06639ea62755f0a24e.tar.gz
linux-c7c1f38f6cba7e3249866c06639ea62755f0a24e.tar.bz2
linux-c7c1f38f6cba7e3249866c06639ea62755f0a24e.zip
vfio/mdev: remove mtype_get_parent_dev
Just open code the dereferences in the only user. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com> Reviewed-by: Eric Farman <farman@linux.ibm.com> Link: https://lore.kernel.org/r/20220923092652.100656-10-hch@lst.de Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/linux/mdev.h')
-rw-r--r--include/linux/mdev.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/mdev.h b/include/linux/mdev.h
index bbedffcb38d4..e445f809ceca 100644
--- a/include/linux/mdev.h
+++ b/include/linux/mdev.h
@@ -51,8 +51,6 @@ static inline struct mdev_device *to_mdev_device(struct device *dev)
return container_of(dev, struct mdev_device, dev);
}
-struct device *mtype_get_parent_dev(struct mdev_type *mtype);
-
/* interface for exporting mdev supported type attributes */
struct mdev_type_attribute {
struct attribute attr;