mm/hmm: select mmu notifier when selecting HMM
authorJérôme Glisse <>
Tue, 14 May 2019 00:19:45 +0000 (17:19 -0700)
committerLinus Torvalds <>
Tue, 14 May 2019 16:47:48 +0000 (09:47 -0700)
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.

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 <>

index 137eadc18732ed0370618d24fe23c91f4f0e6574..0eada3f818faacd2437e0c7720920da33d833784 100644 (file)
@@ -697,12 +697,12 @@ config DEV_PAGEMAP_OPS
 config HMM
+       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
          Select HMM_MIRROR if you want to mirror range of the CPU page table of a