Skip to content

Commit 152e065

Browse files
aarcange-rhtorvalds
authored andcommitted
mm: avoid warning when COMPACTION is selected
COMPACTION enables MIGRATION, but MIGRATION spawns a warning if numa or memhotplug aren't selected. However MIGRATION doesn't depend on them. I guess it's just trying to be strict doing a double check on who's enabling it, but it doesn't know that compaction also enables MIGRATION. Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 4969c11 commit 152e065

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mm/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ config COMPACTION
189189
config MIGRATION
190190
bool "Page migration"
191191
def_bool y
192-
depends on NUMA || ARCH_ENABLE_MEMORY_HOTREMOVE
192+
depends on NUMA || ARCH_ENABLE_MEMORY_HOTREMOVE || COMPACTION
193193
help
194194
Allows the migration of the physical location of pages of processes
195195
while the virtual addresses are not changed. This is useful in

0 commit comments

Comments
 (0)