]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit54d0d2f629a5885010d5760404132b550f5a307f
tree1605c6aff638a6100cbacda901724ce852772acd
parent01a93983576e005bb793c2b7e7fcd42ffb1f8584
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