diff options
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index ea35263eb76b..11943b60f208 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -203,7 +203,6 @@ static inline void hugetlb_show_meminfo(void) | |||
203 | #define pud_huge(x) 0 | 203 | #define pud_huge(x) 0 |
204 | #define is_hugepage_only_range(mm, addr, len) 0 | 204 | #define is_hugepage_only_range(mm, addr, len) 0 |
205 | #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) ({BUG(); 0; }) | 205 | #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) ({BUG(); 0; }) |
206 | #define hugetlb_fault(mm, vma, addr, flags) ({ BUG(); 0; }) | ||
207 | #define hugetlb_mcopy_atomic_pte(dst_mm, dst_pte, dst_vma, dst_addr, \ | 206 | #define hugetlb_mcopy_atomic_pte(dst_mm, dst_pte, dst_vma, dst_addr, \ |
208 | src_addr, pagep) ({ BUG(); 0; }) | 207 | src_addr, pagep) ({ BUG(); 0; }) |
209 | #define huge_pte_offset(mm, address, sz) 0 | 208 | #define huge_pte_offset(mm, address, sz) 0 |
@@ -234,6 +233,13 @@ static inline void __unmap_hugepage_range(struct mmu_gather *tlb, | |||
234 | { | 233 | { |
235 | BUG(); | 234 | BUG(); |
236 | } | 235 | } |
236 | static inline vm_fault_t hugetlb_fault(struct mm_struct *mm, | ||
237 | struct vm_area_struct *vma, unsigned long address, | ||
238 | unsigned int flags) | ||
239 | { | ||
240 | BUG(); | ||
241 | return 0; | ||
242 | } | ||
237 | 243 | ||
238 | #endif /* !CONFIG_HUGETLB_PAGE */ | 244 | #endif /* !CONFIG_HUGETLB_PAGE */ |
239 | /* | 245 | /* |