]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e6bb262d8fc294919c4fd99582c1de4d70577f5
treebe45a0d1ab2ba79c501eb3fe2d8cff05a12d09e2
parentecbf9a2e970722adaab9599797246a8ea8962b24
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