From: Kuninori Morimoto Date: Wed, 6 Aug 2025 23:20:26 +0000 (+0100) Subject: ARM: 9456/1: mm: fault: use string choices helper X-Git-Tag: v6.18-rc1~41^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fb0e5f266ebc86eb97e061ce5e3a74370c16de53;p=thirdparty%2Fkernel%2Fstable.git ARM: 9456/1: mm: fault: use string choices helper We can use string choices helper, let's use it. It makes one line code. Signed-off-by: Kuninori Morimoto Signed-off-by: Russell King (Oracle) --- diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index 46169fe42c61..2bc828a1940c 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c @@ -135,8 +135,7 @@ static void die_kernel_fault(const char *msg, struct mm_struct *mm, bust_spinlocks(1); pr_alert("8<--- cut here ---\n"); pr_alert("Unable to handle kernel %s at virtual address %08lx when %s\n", - msg, addr, fsr & FSR_LNX_PF ? "execute" : - fsr & FSR_WRITE ? "write" : "read"); + msg, addr, fsr & FSR_LNX_PF ? "execute" : str_write_read(fsr & FSR_WRITE)); show_pte(KERN_ALERT, mm, addr); die("Oops", regs, fsr);