thp: special pmd_trans_* functions
[firefly-linux-kernel-4.4.55.git] / include / asm-generic / pgtable.h
index 6f3c6ae4fe03381755264f7d58b9b5ba57fc286f..0ab2cd27c60f2b86d52e0912907526bc45ef9968 100644 (file)
@@ -348,6 +348,17 @@ extern void untrack_pfn_vma(struct vm_area_struct *vma, unsigned long pfn,
                                unsigned long size);
 #endif
 
+#ifndef CONFIG_TRANSPARENT_HUGEPAGE
+static inline int pmd_trans_huge(pmd_t pmd)
+{
+       return 0;
+}
+static inline int pmd_trans_splitting(pmd_t pmd)
+{
+       return 0;
+}
+#endif
+
 #endif /* !__ASSEMBLY__ */
 
 #endif /* _ASM_GENERIC_PGTABLE_H */