Skip to content

Commit 2a55ca3

Browse files
rddunlapawilliam
authored andcommitted
vfio/pci: zap_vma_ptes() needs MMU
zap_vma_ptes() is only available when CONFIG_MMU is set/enabled. Without CONFIG_MMU, vfio_pci.o has build errors, so make VFIO_PCI depend on MMU. riscv64-linux-ld: drivers/vfio/pci/vfio_pci.o: in function `vfio_pci_mmap_open': vfio_pci.c:(.text+0x1ec): undefined reference to `zap_vma_ptes' riscv64-linux-ld: drivers/vfio/pci/vfio_pci.o: in function `.L0 ': vfio_pci.c:(.text+0x165c): undefined reference to `zap_vma_ptes' Fixes: 11c4cd0 ("vfio-pci: Fault mmaps to enable vma tracking") Signed-off-by: Randy Dunlap <[email protected]> Reported-by: kernel test robot <[email protected]> Cc: Alex Williamson <[email protected]> Cc: Cornelia Huck <[email protected]> Cc: [email protected] Cc: Jason Gunthorpe <[email protected]> Cc: Eric Auger <[email protected]> Message-Id: <[email protected]> Signed-off-by: Alex Williamson <[email protected]>
1 parent d1ce2c7 commit 2a55ca3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/vfio/pci/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
config VFIO_PCI
33
tristate "VFIO support for PCI devices"
44
depends on VFIO && PCI && EVENTFD
5+
depends on MMU
56
select VFIO_VIRQFD
67
select IRQ_BYPASS_MANAGER
78
help

0 commit comments

Comments
 (0)