vfio/mdev: remove mdev_from_dev
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Sep 2022 09:26:44 +0000 (11:26 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 4 Oct 2022 18:06:58 +0000 (12:06 -0600)
commitcbf3bb28aaeaee425ca7b9c537a3efff1f8c98ae
treedc6a12ff81eed0ecb9c3c48b13b89c267188098c
parentda44c340c4fe9d9653ae84fa6a60f406bafcffce
vfio/mdev: remove mdev_from_dev

Just open code it in the only caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Kirti Wankhede <kwankhede@nvidia.com>
Link: https://lore.kernel.org/r/20220923092652.100656-7-hch@lst.de
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/mdev/mdev_core.c
include/linux/mdev.h