vfio: Rename __vfio_group_unset_container()
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 22 Sep 2022 19:20:20 +0000 (16:20 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 22 Sep 2022 21:46:06 +0000 (15:46 -0600)
commit429a781c8e01c24ebb2b9da0a63a14e6fd9e0837
treee9b40bcfd1b4b53181f3c8d94bf61540878f3b48
parente3bb4de0a0380910180e758a30ccfda65f8e286e
vfio: Rename __vfio_group_unset_container()

To vfio_group_detach_container(). This function is really a container
function.

Fold the WARN_ON() into it as a precondition assertion.

A following patch will move the vfio_container functions to their own .c
file.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/2-v3-297af71838d2+b9-vfio_container_split_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_main.c