hugetlb: introduce generic version of prepare_hugepage_range
[muen/linux.git] / arch / arm / include / asm / hugetlb.h
index 9ca14227eeb7fc1c11b051896134755fd1fc0b50..3fcef21ff2c2e102bfc1b63bc2c49b4033739434 100644 (file)
@@ -33,17 +33,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);