diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/mm/hugetlbpage.c | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/ia64/mm/hugetlbpage.c b/arch/ia64/mm/hugetlbpage.c index d3ce8f3bcaa6..cd49e2860eef 100644 --- a/arch/ia64/mm/hugetlbpage.c +++ b/arch/ia64/mm/hugetlbpage.c | |||
@@ -112,7 +112,7 @@ follow_huge_pmd(struct mm_struct *mm, unsigned long address, pmd_t *pmd, int wri | |||
112 | return NULL; | 112 | return NULL; |
113 | } | 113 | } |
114 | 114 | ||
115 | void hugetlb_free_pgd_range(struct mmu_gather **tlb, | 115 | void hugetlb_free_pgd_range(struct mmu_gather *tlb, |
116 | unsigned long addr, unsigned long end, | 116 | unsigned long addr, unsigned long end, |
117 | unsigned long floor, unsigned long ceiling) | 117 | unsigned long floor, unsigned long ceiling) |
118 | { | 118 | { |
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 0d12fba31bc5..1a96cc891cf5 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
@@ -255,7 +255,7 @@ static void hugetlb_free_pud_range(struct mmu_gather *tlb, pgd_t *pgd, | |||
255 | * | 255 | * |
256 | * Must be called with pagetable lock held. | 256 | * Must be called with pagetable lock held. |
257 | */ | 257 | */ |
258 | void hugetlb_free_pgd_range(struct mmu_gather **tlb, | 258 | void hugetlb_free_pgd_range(struct mmu_gather *tlb, |
259 | unsigned long addr, unsigned long end, | 259 | unsigned long addr, unsigned long end, |
260 | unsigned long floor, unsigned long ceiling) | 260 | unsigned long floor, unsigned long ceiling) |
261 | { | 261 | { |
@@ -315,13 +315,13 @@ void hugetlb_free_pgd_range(struct mmu_gather **tlb, | |||
315 | return; | 315 | return; |
316 | 316 | ||
317 | start = addr; | 317 | start = addr; |
318 | pgd = pgd_offset((*tlb)->mm, addr); | 318 | pgd = pgd_offset(tlb->mm, addr); |
319 | do { | 319 | do { |
320 | BUG_ON(get_slice_psize((*tlb)->mm, addr) != mmu_huge_psize); | 320 | BUG_ON(get_slice_psize(tlb->mm, addr) != mmu_huge_psize); |
321 | next = pgd_addr_end(addr, end); | 321 | next = pgd_addr_end(addr, end); |
322 | if (pgd_none_or_clear_bad(pgd)) | 322 | if (pgd_none_or_clear_bad(pgd)) |
323 | continue; | 323 | continue; |
324 | hugetlb_free_pud_range(*tlb, pgd, addr, next, floor, ceiling); | 324 | hugetlb_free_pud_range(tlb, pgd, addr, next, floor, ceiling); |
325 | } while (pgd++, addr = next, addr != end); | 325 | } while (pgd++, addr = next, addr != end); |
326 | } | 326 | } |
327 | 327 | ||