vfio: Move vfio_spapr_iommu_eeh_ioctl into vfio_iommu_spapr_tce.c
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 5 Dec 2022 15:29:18 +0000 (11:29 -0400)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 5 Dec 2022 19:04:32 +0000 (12:04 -0700)
commite276e25819b8a173a21947720bb0a548c0b724b7
treecbe05321e446b7d6f3d2d6633e0bca80801b0522
parente5c38a203eb4343993e889eb69f5386f085f25ef
vfio: Move vfio_spapr_iommu_eeh_ioctl into vfio_iommu_spapr_tce.c

As with the previous patch EEH is always enabled if SPAPR_TCE_IOMMU, so
move this last bit of code into the main module.

Now that this function only processes VFIO_EEH_PE_OP remove a level of
indenting as well, it is only called by a case statement that already
checked VFIO_EEH_PE_OP.

This eliminates an unnecessary module and SPAPR code in a global header.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/3-v5-fc5346cacfd4+4c482-vfio_modules_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/Makefile
drivers/vfio/vfio_iommu_spapr_tce.c
drivers/vfio/vfio_spapr_eeh.c [deleted file]
include/linux/vfio.h