diff options
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 5d84c368ffe4..e465fbf1ef5f 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -43,8 +43,10 @@ void hugetlb_change_protection(struct vm_area_struct *vma, | |||
43 | 43 | ||
44 | #ifndef ARCH_HAS_HUGEPAGE_ONLY_RANGE | 44 | #ifndef ARCH_HAS_HUGEPAGE_ONLY_RANGE |
45 | #define is_hugepage_only_range(mm, addr, len) 0 | 45 | #define is_hugepage_only_range(mm, addr, len) 0 |
46 | #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) \ | 46 | #endif |
47 | do { } while (0) | 47 | |
48 | #ifndef ARCH_HAS_HUGETLB_FREE_PGD_RANGE | ||
49 | #define hugetlb_free_pgd_range free_pgd_range | ||
48 | #endif | 50 | #endif |
49 | 51 | ||
50 | #ifndef ARCH_HAS_PREPARE_HUGEPAGE_RANGE | 52 | #ifndef ARCH_HAS_PREPARE_HUGEPAGE_RANGE |
@@ -93,8 +95,7 @@ static inline unsigned long hugetlb_total_pages(void) | |||
93 | #define prepare_hugepage_range(addr, len) (-EINVAL) | 95 | #define prepare_hugepage_range(addr, len) (-EINVAL) |
94 | #define pmd_huge(x) 0 | 96 | #define pmd_huge(x) 0 |
95 | #define is_hugepage_only_range(mm, addr, len) 0 | 97 | #define is_hugepage_only_range(mm, addr, len) 0 |
96 | #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) \ | 98 | #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) ({BUG(); 0; }) |
97 | do { } while (0) | ||
98 | #define hugetlb_fault(mm, vma, addr, write) ({ BUG(); 0; }) | 99 | #define hugetlb_fault(mm, vma, addr, write) ({ BUG(); 0; }) |
99 | 100 | ||
100 | #define hugetlb_change_protection(vma, address, end, newprot) | 101 | #define hugetlb_change_protection(vma, address, end, newprot) |