vfio/mdev: Expose mdev_get/put_parent to mdev_private.h
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 6 Apr 2021 19:40:29 +0000 (16:40 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 7 Apr 2021 21:39:17 +0000 (15:39 -0600)
commita9f8111d0b5f445d853345e6917c1781573e4ba9
treebe45a0d1ab2ba79c501eb3fe2d8cff05a12d09e2
parent417fd5bf242d7691c15fe0bd705ab76c69276572
vfio/mdev: Expose mdev_get/put_parent to mdev_private.h

The next patch will use these in mdev_sysfs.c

While here remove the now dead code checks for NULL, a mdev_type can never
have a NULL parent.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Message-Id: <6-v2-d36939638fc6+d54-vfio2_jgg@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/mdev/mdev_core.c
drivers/vfio/mdev/mdev_private.h