]> Git Repo - linux.git/commitdiff
vfio: Depend on MMU
authorJason Gunthorpe <[email protected]>
Fri, 5 Mar 2021 01:30:03 +0000 (21:30 -0400)
committerAlex Williamson <[email protected]>
Tue, 16 Mar 2021 16:39:28 +0000 (10:39 -0600)
VFIO_IOMMU_TYPE1 does not compile with !MMU:

../drivers/vfio/vfio_iommu_type1.c: In function 'follow_fault_pfn':
../drivers/vfio/vfio_iommu_type1.c:536:22: error: implicit declaration of function 'pte_write'; did you mean 'vfs_write'? [-Werror=implicit-function-declaration]

So require it.

Suggested-by: Cornelia Huck <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Message-Id: <0-v1-02cb5500df6e[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
drivers/vfio/Kconfig

index 90c0525b1e0cf405f6d3184e24e6972faa16f6d6..67d0bf4efa16066c8437efafbcee323d71fedc41 100644 (file)
@@ -22,7 +22,7 @@ config VFIO_VIRQFD
 menuconfig VFIO
        tristate "VFIO Non-Privileged userspace driver framework"
        select IOMMU_API
-       select VFIO_IOMMU_TYPE1 if (X86 || S390 || ARM || ARM64)
+       select VFIO_IOMMU_TYPE1 if MMU && (X86 || S390 || ARM || ARM64)
        help
          VFIO provides a framework for secure userspace device drivers.
          See Documentation/driver-api/vfio.rst for more details.
This page took 0.044888 seconds and 4 git commands to generate.