From: Jérôme Glisse <jgli...@redhat.com> [ Upstream commit 734fb89968900b5c5f8edd5038bd4cdeab8c61d2 ]
To avoid random config build issue, select mmu notifier when HMM is selected. In any cases when HMM get selected it will be by users that will also wants the mmu notifier. Link: http://lkml.kernel.org/r/20190403193318.16478-2-jgli...@redhat.com Signed-off-by: Jérôme Glisse <jgli...@redhat.com> Acked-by: Balbir Singh <bsinghar...@gmail.com> Cc: Ralph Campbell <rcampb...@nvidia.com> Cc: John Hubbard <jhubb...@nvidia.com> Cc: Dan Williams <dan.j.willi...@intel.com> Cc: Arnd Bergmann <a...@arndb.de> Cc: Dan Carpenter <dan.carpen...@oracle.com> Cc: Ira Weiny <ira.we...@intel.com> Cc: Matthew Wilcox <wi...@infradead.org> Cc: Souptick Joarder <jrdr.li...@gmail.com> Signed-off-by: Andrew Morton <a...@linux-foundation.org> Signed-off-by: Linus Torvalds <torva...@linux-foundation.org> Signed-off-by: Sasha Levin <sas...@kernel.org> --- mm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/Kconfig b/mm/Kconfig index 25c71eb8a7dbd..2e6d24d783f78 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -694,12 +694,12 @@ config DEV_PAGEMAP_OPS config HMM bool + select MMU_NOTIFIER select MIGRATE_VMA_HELPER config HMM_MIRROR bool "HMM mirror CPU page table into a device page table" depends on ARCH_HAS_HMM - select MMU_NOTIFIER select HMM help Select HMM_MIRROR if you want to mirror range of the CPU page table of a -- 2.20.1