diff options
Diffstat (limited to 'include/linux/hugetlb.h')
-rw-r--r-- | include/linux/hugetlb.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index ae45676d27ba..6af1ae4a8211 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h | |||
@@ -37,7 +37,8 @@ extern int sysctl_hugetlb_shm_group; | |||
37 | 37 | ||
38 | #ifndef ARCH_HAS_HUGEPAGE_ONLY_RANGE | 38 | #ifndef ARCH_HAS_HUGEPAGE_ONLY_RANGE |
39 | #define is_hugepage_only_range(mm, addr, len) 0 | 39 | #define is_hugepage_only_range(mm, addr, len) 0 |
40 | #define hugetlb_free_pgtables(tlb, prev, start, end) do { } while (0) | 40 | #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) \ |
41 | do { } while (0) | ||
41 | #endif | 42 | #endif |
42 | 43 | ||
43 | #ifndef ARCH_HAS_PREPARE_HUGEPAGE_RANGE | 44 | #ifndef ARCH_HAS_PREPARE_HUGEPAGE_RANGE |
@@ -72,7 +73,8 @@ static inline unsigned long hugetlb_total_pages(void) | |||
72 | #define prepare_hugepage_range(addr, len) (-EINVAL) | 73 | #define prepare_hugepage_range(addr, len) (-EINVAL) |
73 | #define pmd_huge(x) 0 | 74 | #define pmd_huge(x) 0 |
74 | #define is_hugepage_only_range(mm, addr, len) 0 | 75 | #define is_hugepage_only_range(mm, addr, len) 0 |
75 | #define hugetlb_free_pgtables(tlb, prev, start, end) do { } while (0) | 76 | #define hugetlb_free_pgd_range(tlb, addr, end, floor, ceiling) \ |
77 | do { } while (0) | ||
76 | #define alloc_huge_page() ({ NULL; }) | 78 | #define alloc_huge_page() ({ NULL; }) |
77 | #define free_huge_page(p) ({ (void)(p); BUG(); }) | 79 | #define free_huge_page(p) ({ (void)(p); BUG(); }) |
78 | 80 | ||