The patch titled Subject: mm/mmu_notifier: use structure for invalidate_range_start/end calls v3 has been added to the -mm tree. Its filename is mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v3.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v3.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v3.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Jérôme Glisse <jglisse@xxxxxxxxxx> Subject: mm/mmu_notifier: use structure for invalidate_range_start/end calls v3 fix build warning in migrate.c when CONFIG_MMU_NOTIFIER=n Link: http://lkml.kernel.org/r/20181213171330.8489-3-jglisse@xxxxxxxxxx Signed-off-by: Jérôme Glisse <jglisse@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/migrate.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) --- a/mm/migrate.c~mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v3 +++ a/mm/migrate.c @@ -2707,8 +2707,6 @@ static void migrate_vma_pages(struct mig { const unsigned long npages = migrate->npages; const unsigned long start = migrate->start; - struct vm_area_struct *vma = migrate->vma; - struct mm_struct *mm = vma->vm_mm; struct mmu_notifier_range range; unsigned long addr, i; bool notified = false; @@ -2731,8 +2729,9 @@ static void migrate_vma_pages(struct mig if (!notified) { notified = true; - mmu_notifier_range_init(&range, mm, addr, - migrate->end); + mmu_notifier_range_init(&range, + migrate->vma->vm_mm, + addr, migrate->end); mmu_notifier_invalidate_range_start(&range); } migrate_vma_insert_page(migrate, addr, newpage, _ Patches currently in -mm which might be from jglisse@xxxxxxxxxx are mm-mmu_notifier-use-structure-for-invalidate_range_start-end-callback.patch mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v2.patch mm-mmu_notifier-use-structure-for-invalidate_range_start-end-calls-v3.patch mm-mmu_notifier-contextual-information-for-event-triggering-invalidation-v2.patch mm-mmu_notifier-contextual-information-for-event-triggering-invalidation-v2-fix.patch