]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/pci: Simplify the is_intx/msi/msix/etc defines
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 26 Aug 2022 19:34:03 +0000 (16:34 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 1 Sep 2022 21:29:11 +0000 (15:29 -0600)
commit57cdf380a94ef9dae26c46f647a96b8a260bfb40
tree2bc33814cd0943c9d41e1773741954aea7d58493
parente8aad742fcb2a1ba79e96978cd20caf7d43f490a
vfio/pci: Simplify the is_intx/msi/msix/etc defines

Only three of these are actually used, simplify to three inline functions,
and open code the if statement in vfio_pci_config.c.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Link: https://lore.kernel.org/r/3-v2-1bd95d72f298+e0e-vfio_pci_priv_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_config.c
drivers/vfio/pci/vfio_pci_intrs.c
drivers/vfio/pci/vfio_pci_priv.h