Skip to contentSkip to conversation

mm/hmm: Fix Kconfig dependencies for HMM

PATCH New Balbir Singh 1 participant 1 message Apr 11, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm/hmm: Fix Kconfig dependencies for HMM

HMM uses arch_add/remove_memory, fix the Kconfig dependencies to add MEMORY_HOTPLUG and MEMORY_HOTREMOVE

---
 mm/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
mm/Kconfig +3 -3
index 43d000e..c10cd99 100644
@@ -291,7 +291,7 @@ config ARCH_ENABLE_HUGEPAGE_MIGRATION
 
 config HMM
 	bool
-	depends on MMU && 64BIT
+	depends on MMU && 64BIT && MEMORY_HOTREMOVE && MEMORY_HOTPLUG
 	help
 	  HMM provides a set of helpers to share a virtual address
 	  space between CPU and a device, so that the device can access any valid
@@ -305,7 +305,7 @@ config HMM
 
 config HMM_MIRROR
 	bool "HMM mirror CPU page table into a device page table"
-	depends on MMU && 64BIT
+	depends on MMU && 64BIT && MEMORY_HOTREMOVE && MEMORY_HOTPLUG
 	select HMM
 	select MMU_NOTIFIER
 	help
@@ -317,7 +317,7 @@ config HMM_MIRROR
 
 config HMM_DEVMEM
 	bool "HMM device memory helpers (to leverage ZONE_DEVICE)"
-	depends on MMU && 64BIT
+	depends on MMU && 64BIT && MEMORY_HOTREMOVE && MEMORY_HOTPLUG
 	select HMM
 	help
 	  HMM devmem is a set of helper routines to leverage the ZONE_DEVICE
Signature · 7 lines
2.9.3

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>