hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/sh/include/asm/pgtable-3level.h
....@@ -32,9 +32,9 @@
3232 #define pmd_val(x) ((x).pmd)
3333 #define __pmd(x) ((pmd_t) { (x) } )
3434
35
-static inline unsigned long pud_page_vaddr(pud_t pud)
35
+static inline pmd_t *pud_pgtable(pud_t pud)
3636 {
37
- return pud_val(pud);
37
+ return (pmd_t *)(unsigned long)pud_val(pud);
3838 }
3939
4040 /* only used by the stubbed out hugetlb gup code, should never be called */