treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm / include / asm / hugetlb.h
blob318dcf5921aba492a8a6582aebb15b78fe7a22b0
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * arch/arm/include/asm/hugetlb.h
5 * Copyright (C) 2012 ARM Ltd.
7 * Based on arch/x86/include/asm/hugetlb.h
8 */
10 #ifndef _ASM_ARM_HUGETLB_H
11 #define _ASM_ARM_HUGETLB_H
13 #include <asm/page.h>
14 #include <asm/hugetlb-3level.h>
15 #include <asm-generic/hugetlb.h>
17 static inline int is_hugepage_only_range(struct mm_struct *mm,
18 unsigned long addr, unsigned long len)
20 return 0;
23 static inline void arch_clear_hugepage_flags(struct page *page)
25 clear_bit(PG_dcache_clean, &page->flags);
28 #endif /* _ASM_ARM_HUGETLB_H */