hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
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 */