--- a/mm/mmap.c~mm-mmapc-remove-a-never-trigger-warning-in-__vma_adjust +++ a/mm/mmap.c @@ -769,8 +769,6 @@ int __vma_adjust(struct vm_area_struct * remove_next = 1 + (end > next->vm_end); VM_WARN_ON(remove_next == 2 && end != next->vm_next->vm_end); - VM_WARN_ON(remove_next == 1 && - end != next->vm_end); /* trim end to next, for case 6 first pass */ end = next->vm_end; }