um: require MMU for UML PCI support
Subsystems (2)
PATCH 1/1 um: require MMU for UML PCI support
Because UML_PCI (arch/um/drivers/Kconfig) selects FORCE_PCI, this contradicts the current dependency of CONFIG_PCI on CONFIG_MMU. This commit fixes this issue by adding right dependencies under !MMU environment.
Reported-by kernel test robot <[email protected]>
Fixes 626ff2b34dbb ("um: allow deselecting CONFIG_MMU")
Cc Richard Weinberger <[email protected]>
Cc Anton Ivanov <[email protected]>
Cc Johannes Berg <[email protected]>
Cc Brendan Higgins <[email protected]>
Cc David Gow <[email protected]>
Cc Rae Moar <[email protected]>
Signed-off-by Hajime Tazaki <[email protected]>
--- arch/um/drivers/Kconfig | 3 +++ lib/kunit/Kconfig | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
arch/um/drivers/Kconfig +3 -0
@@ -159,6 +159,7 @@ config UML_RTC config UML_PCI bool + depends on MMU select FORCE_PCI select IRQ_MSI_LIB select UML_IOMEM_EMULATION
@@ -169,6 +170,7 @@ config UML_PCI config UML_PCI_OVER_VIRTIO bool "Enable PCI over VIRTIO device simulation" # in theory, just VIRTIO is enough, but that causes recursion + depends on MMU depends on VIRTIO_UML select UML_PCI
@@ -183,6 +185,7 @@ config UML_PCI_OVER_VIRTIO_DEVICE_ID config UML_PCI_OVER_VFIO bool "Enable VFIO-based PCI passthrough" + depends on MMU select UML_PCI help This driver provides support for VFIO-based PCI passthrough.
lib/kunit/Kconfig +1 -1
@@ -133,7 +133,7 @@ config KUNIT_DEFAULT_TIMEOUT config KUNIT_UML_PCI bool "KUnit UML PCI Support" - depends on UML + depends on UML && MMU select UML_PCI help Enables the PCI subsystem on UML for use by KUnit tests.
Signature · 1 line
2.43.0