diff options
Diffstat (limited to 'arch/x86/mm/hugetlbpage.c')
-rw-r--r-- | arch/x86/mm/hugetlbpage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/mm/hugetlbpage.c b/arch/x86/mm/hugetlbpage.c index 6c06d9c0488e..4fbafb4bc2f0 100644 --- a/arch/x86/mm/hugetlbpage.c +++ b/arch/x86/mm/hugetlbpage.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <asm/mman.h> | 15 | #include <asm/mman.h> |
16 | #include <asm/tlb.h> | 16 | #include <asm/tlb.h> |
17 | #include <asm/tlbflush.h> | 17 | #include <asm/tlbflush.h> |
18 | #include <asm/pgalloc.h> | ||
18 | 19 | ||
19 | static unsigned long page_table_shareable(struct vm_area_struct *svma, | 20 | static unsigned long page_table_shareable(struct vm_area_struct *svma, |
20 | struct vm_area_struct *vma, | 21 | struct vm_area_struct *vma, |
@@ -88,7 +89,7 @@ static void huge_pmd_share(struct mm_struct *mm, unsigned long addr, pud_t *pud) | |||
88 | 89 | ||
89 | spin_lock(&mm->page_table_lock); | 90 | spin_lock(&mm->page_table_lock); |
90 | if (pud_none(*pud)) | 91 | if (pud_none(*pud)) |
91 | pud_populate(mm, pud, (unsigned long) spte & PAGE_MASK); | 92 | pud_populate(mm, pud, (pmd_t *)((unsigned long)spte & PAGE_MASK)); |
92 | else | 93 | else |
93 | put_page(virt_to_page(spte)); | 94 | put_page(virt_to_page(spte)); |
94 | spin_unlock(&mm->page_table_lock); | 95 | spin_unlock(&mm->page_table_lock); |