Skip to content

Commit 80ee9e0

Browse files
jgunthorpegregkh
authored andcommitted
vfio/nvlink: Add missing SPAPR_TCE_IOMMU depends
commit e0146a1 upstream. Compiling the nvlink stuff relies on the SPAPR_TCE_IOMMU otherwise there are compile errors: drivers/vfio/pci/vfio_pci_nvlink2.c:101:10: error: implicit declaration of function 'mm_iommu_put' [-Werror,-Wimplicit-function-declaration] ret = mm_iommu_put(data->mm, data->mem); As PPC only defines these functions when the config is set. Previously this wasn't a problem by chance as SPAPR_TCE_IOMMU was the only IOMMU that could have satisfied IOMMU_API on POWERNV. Fixes: 179209f ("vfio: IOMMU_API should be selected") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Message-Id: <0-v1-83dba9768fc3+419-vfio_nvlink2_kconfig_jgg@nvidia.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent d2308dd commit 80ee9e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/vfio/pci/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ config VFIO_PCI_IGD
4242

4343
config VFIO_PCI_NVLINK2
4444
def_bool y
45-
depends on VFIO_PCI && PPC_POWERNV
45+
depends on VFIO_PCI && PPC_POWERNV && SPAPR_TCE_IOMMU
4646
help
4747
VFIO PCI support for P9 Witherspoon machine with NVIDIA V100 GPUs
4848

0 commit comments

Comments
 (0)