From: Al Viro Date: Mon, 5 Mar 2012 18:25:09 +0000 (-0500) Subject: VM: unmap_page_range() can return void X-Git-Tag: MMI-PSA29.97-13-9~17246^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=038c7aa16a38059ac23dfe9caa6954226ea20728;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git VM: unmap_page_range() can return void return value is always the 4th ('end') argument. Signed-off-by: Al Viro --- diff --git a/mm/memory.c b/mm/memory.c index fa2f04e0337c..1b6712a9720d 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1282,10 +1282,10 @@ static inline unsigned long zap_pud_range(struct mmu_gather *tlb, return addr; } -static unsigned long unmap_page_range(struct mmu_gather *tlb, - struct vm_area_struct *vma, - unsigned long addr, unsigned long end, - struct zap_details *details) +static void unmap_page_range(struct mmu_gather *tlb, + struct vm_area_struct *vma, + unsigned long addr, unsigned long end, + struct zap_details *details) { pgd_t *pgd; unsigned long next; @@ -1305,8 +1305,6 @@ static unsigned long unmap_page_range(struct mmu_gather *tlb, } while (pgd++, addr = next, addr != end); tlb_end_vma(tlb, vma); mem_cgroup_uncharge_end(); - - return addr; } /** @@ -1371,10 +1369,9 @@ unsigned long unmap_vmas(struct mmu_gather *tlb, */ if (vma->vm_file) unmap_hugepage_range(vma, start, end, NULL); - - start = end; } else - start = unmap_page_range(tlb, vma, start, end, details); + unmap_page_range(tlb, vma, start, end, details); + start = end; } }