The powerpc CPU Kconfig defines `PPC_E500`. There is no generated `CONFIG_E500` symbol for `IS_ENABLED()` to test here.
`mask_user_address()` therefore checks an impossible symbol before choosing the E500-specific masking helper. Use `CONFIG_PPC_E500`, which matches the actual Kconfig provider for this CPU family. Signed-off-by: Pengpeng Hou <[email protected]> --- arch/powerpc/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h --- a/arch/powerpc/include/asm/uaccess.h +++ b/arch/powerpc/include/asm/uaccess.h @@ -537,7 +537,7 @@ static __always_inline unsigned long mask_user_address(const void __user *ptr) if (IS_ENABLED(CONFIG_PPC64)) return mask_user_address_simple(ptr); - if (IS_ENABLED(CONFIG_E500)) + if (IS_ENABLED(CONFIG_PPC_E500)) return mask_user_address_isel(ptr); if (TASK_SIZE <= UL(SZ_2G) && border >= UL(SZ_2G)) return mask_user_address_simple(ptr);
