Skip to content

Commit 0ee3bfc

Browse files
jgunthorpegregkh
authored andcommitted
vfio: Depend on MMU
commit b2b12db upstream. 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: <[email protected]> Signed-off-by: Alex Williamson <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent b246759 commit 0ee3bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vfio/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ config VFIO_VIRQFD
2222
menuconfig VFIO
2323
tristate "VFIO Non-Privileged userspace driver framework"
2424
select IOMMU_API
25-
select VFIO_IOMMU_TYPE1 if (X86 || S390 || ARM || ARM64)
25+
select VFIO_IOMMU_TYPE1 if MMU && (X86 || S390 || ARM || ARM64)
2626
help
2727
VFIO provides a framework for secure userspace device drivers.
2828
See Documentation/driver-api/vfio.rst for more details.

0 commit comments

Comments
 (0)