All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mm/hmm: Fix Kconfig dependencies for HMM
@ 2017-04-11  7:51 Balbir Singh
  0 siblings, 0 replies; only message in thread
From: Balbir Singh @ 2017-04-11  7:51 UTC (permalink / raw)
  To: jglisse, akpm; +Cc: linux-mm, Balbir Singh

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

Signed-off-by: Balbir Singh <bsingharora@gmail.com>
---
 mm/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mm/Kconfig b/mm/Kconfig
index 43d000e..c10cd99 100644
--- a/mm/Kconfig
+++ b/mm/Kconfig
@@ -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
-- 
2.9.3

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-11  7:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11  7:51 [PATCH] mm/hmm: Fix Kconfig dependencies for HMM Balbir Singh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.