Message ID | 20241027142417.75809-2-thorsten.blum@linux.dev (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | arch: mm: Use str_write_read() helper in die_kernel_fault() | expand |
diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c index ab01b51de559..b2d59d260a1f 100644 --- a/arch/arm/mm/fault.c +++ b/arch/arm/mm/fault.c @@ -136,7 +136,7 @@ static void die_kernel_fault(const char *msg, struct mm_struct *mm, 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"); + str_write_read(fsr & FSR_WRITE)); show_pte(KERN_ALERT, mm, addr); die("Oops", regs, fsr);
Remove hard-coded strings by using the str_write_read() helper function. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> --- arch/arm/mm/fault.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)