forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/include/asm/book3s/64/pgtable-64k.h
....@@ -10,6 +10,9 @@
1010 *
1111 * Defined in such a way that we can optimize away code block at build time
1212 * if CONFIG_HUGETLB_PAGE=n.
13
+ *
14
+ * returns true for pmd migration entries, THP, devmap, hugetlb
15
+ * But compile time dependent on CONFIG_HUGETLB_PAGE
1316 */
1417 static inline int pmd_huge(pmd_t pmd)
1518 {
....@@ -56,9 +59,6 @@
5659 BUG();
5760 }
5861
59
-#else /* !CONFIG_HUGETLB_PAGE */
60
-static inline int pmd_huge(pmd_t pmd) { return 0; }
61
-static inline int pud_huge(pud_t pud) { return 0; }
6262 #endif /* CONFIG_HUGETLB_PAGE */
6363
6464 static inline int remap_4k_pfn(struct vm_area_struct *vma, unsigned long addr,