vfio: Remove #ifdefs around CONFIG_VFIO_NOIOMMU
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 22 Sep 2022 19:20:22 +0000 (16:20 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 22 Sep 2022 21:46:06 +0000 (15:46 -0600)
commit444d43ecd01033a758e73b8ae154ee7f3e827f7b
tree1605c6aff638a6100cbacda901724ce852772acd
parent03e650f6611563c0ccbd0d769d5748fd10d8ee8e
vfio: Remove #ifdefs around CONFIG_VFIO_NOIOMMU

This can all be accomplished using typical IS_ENABLED techniques, drop it
all.

Also rename the variable to vfio_noiommu so this can be made global in
following patches.

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