hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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 */