walk_page_range() is going to be allowed to walk page tables other than those of user space. For this it needs to know when it has reached a 'leaf' entry in the page tables. This information is provided by the p?d_large() functions/macros. For unicore32, we don't support large pages, so add a stub returning 0. CC: Guan Xuetao <gxt@xxxxxxxxxx> Signed-off-by: Steven Price <steven.price@xxxxxxx> --- arch/unicore32/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/unicore32/include/asm/pgtable.h b/arch/unicore32/include/asm/pgtable.h index a4f2bef37e70..b45429df8b99 100644 --- a/arch/unicore32/include/asm/pgtable.h +++ b/arch/unicore32/include/asm/pgtable.h @@ -209,6 +209,7 @@ static inline pte_t pte_mkspecial(pte_t pte) { return pte; } #define pmd_bad(pmd) (((pmd_val(pmd) & \ (PMD_PRESENT | PMD_TYPE_MASK)) \ != (PMD_PRESENT | PMD_TYPE_TABLE))) +#define pmd_large(pmd) (0) #define set_pmd(pmdpd, pmdval) \ do { \ -- 2.20.1