hugetlb: introduce generic version of prepare_hugepage_range
[muen/linux.git] / arch / arm64 / include / asm / hugetlb.h
index 1fd64ebf0cd71fad09d6ed45c0eb0e4ff44a9184..3e7f6e69b28deb1a13be71e5f0eb1f36d3da6969 100644 (file)
@@ -31,17 +31,6 @@ static inline int is_hugepage_only_range(struct mm_struct *mm,
        return 0;
 }
 
-static inline int prepare_hugepage_range(struct file *file,
-                                        unsigned long addr, unsigned long len)
-{
-       struct hstate *h = hstate_file(file);
-       if (len & ~huge_page_mask(h))
-               return -EINVAL;
-       if (addr & ~huge_page_mask(h))
-               return -EINVAL;
-       return 0;
-}
-
 static inline void arch_clear_hugepage_flags(struct page *page)
 {
        clear_bit(PG_dcache_clean, &page->flags);