Skip to content

Commit 9b2ed9c

Browse files
Christoph Hellwigjgunthorpe
authored andcommitted
mm: remove CONFIG_MIGRATE_VMA_HELPER
CONFIG_MIGRATE_VMA_HELPER guards helpers that are required for proper devic private memory support. Remove the option and just check for CONFIG_DEVICE_PRIVATE instead. Link: https://lore.kernel.org/r/20190814075928.23766-11-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jason Gunthorpe <jgg@mellanox.com> Tested-by: Ralph Campbell <rcampbell@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
1 parent 06d462b commit 9b2ed9c

3 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎drivers/gpu/drm/nouveau/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ config DRM_NOUVEAU_SVM
8989
depends on MMU
9090
depends on STAGING
9191
select HMM_MIRROR
92-
select MIGRATE_VMA_HELPER
9392
select MMU_NOTIFIER
9493
default n
9594
help

‎mm/Kconfig‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,9 +669,6 @@ config ZONE_DEVICE
669669

670670
If FS_DAX is enabled, then say Y.
671671

672-
config MIGRATE_VMA_HELPER
673-
bool
674-
675672
config DEV_PAGEMAP_OPS
676673
bool
677674

‎mm/migrate.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2117,7 +2117,7 @@ int migrate_misplaced_transhuge_page(struct mm_struct *mm,
21172117

21182118
#endif /* CONFIG_NUMA */
21192119

2120-
#if defined(CONFIG_MIGRATE_VMA_HELPER)
2120+
#ifdef CONFIG_DEVICE_PRIVATE
21212121
static int migrate_vma_collect_hole(unsigned long start,
21222122
unsigned long end,
21232123
struct mm_walk *walk)
@@ -2942,4 +2942,4 @@ void migrate_vma_finalize(struct migrate_vma *migrate)
29422942
}
29432943
}
29442944
EXPORT_SYMBOL(migrate_vma_finalize);
2945-
#endif /* defined(MIGRATE_VMA_HELPER) */
2945+
#endif /* CONFIG_DEVICE_PRIVATE */

0 commit comments

Comments
 (0)