riscv/mm: fix two page table check related issues
[sfrench/cifs-2.6.git] / include / asm-generic / pgtable-nopmd.h
index 10789cf51d1603337c270c204d7074e71a0442f6..8ffd64e7a24cbb39a671b535122231db6c12abe0 100644 (file)
@@ -30,6 +30,8 @@ typedef struct { pud_t pud; } pmd_t;
 static inline int pud_none(pud_t pud)          { return 0; }
 static inline int pud_bad(pud_t pud)           { return 0; }
 static inline int pud_present(pud_t pud)       { return 1; }
+static inline int pud_user(pud_t pud)          { return 0; }
+static inline int pud_leaf(pud_t pud)          { return 0; }
 static inline void pud_clear(pud_t *pud)       { }
 #define pmd_ERROR(pmd)                         (pud_ERROR((pmd).pud))