From: Jérôme Glisse Date: Tue, 14 May 2019 00:19:45 +0000 (-0700) Subject: mm/hmm: select mmu notifier when selecting HMM X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=734fb89968900b5c5f8edd5038bd4cdeab8c61d2;p=linux.git mm/hmm: select mmu notifier when selecting HMM 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-jglisse@redhat.com Signed-off-by: Jérôme Glisse Acked-by: Balbir Singh Cc: Ralph Campbell Cc: John Hubbard Cc: Dan Williams Cc: Arnd Bergmann Cc: Dan Carpenter Cc: Ira Weiny Cc: Matthew Wilcox Cc: Souptick Joarder Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/Kconfig b/mm/Kconfig index 137eadc18732e..0eada3f818faa 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -697,12 +697,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