Message ID | 20220429061731.36291-1-luyun_611@163.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | mips: mm: fix compiler error when CONFIG_XPA=n | expand |
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 5a8002839550..f13cd2844fed 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -451,7 +451,8 @@ void __init mem_init(void) * When _PFN_SHIFT is greater than PAGE_SHIFT we won't have enough PTE * bits to hold a full 32b physical address on MIPS32 systems. */ - BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && (_PFN_SHIFT > PAGE_SHIFT)); + BUILD_BUG_ON(IS_ENABLED(CONFIG_32BIT) && IS_ENABLED(CONFIG_XPA) && + (_PFN_SHIFT > PAGE_SHIFT)); #ifdef CONFIG_HIGHMEM max_mapnr = highend_pfn ? highend_pfn : max_low_pfn;