6.14-stable review patch. If anyone has any objections, please let me know.
------------------
From: Thorsten Blum thorsten.blum@linux.dev
[ Upstream commit 751b3d8d886e73ecc24a5426adba228ef7eb39e8 ]
Remove hard-coded strings by using the str_read_write() helper.
Signed-off-by: Thorsten Blum thorsten.blum@linux.dev Reviewed-by: Geert Uytterhoeven geert@linux-m68k.org Link: https://lore.kernel.org/20250117120605.126941-2-thorsten.blum@linux.dev Signed-off-by: Geert Uytterhoeven geert@linux-m68k.org Stable-dep-of: 723be3c6ab31 ("m68k: sun3: Fix DEBUG_MMU_EMU build") Signed-off-by: Sasha Levin sashal@kernel.org --- arch/m68k/sun3/mmu_emu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/m68k/sun3/mmu_emu.c b/arch/m68k/sun3/mmu_emu.c index 119bd32efcfbc..7b15cc12637bf 100644 --- a/arch/m68k/sun3/mmu_emu.c +++ b/arch/m68k/sun3/mmu_emu.c @@ -17,6 +17,7 @@ #include <linux/bitops.h> #include <linux/module.h> #include <linux/sched/mm.h> +#include <linux/string_choices.h>
#include <asm/setup.h> #include <asm/traps.h> @@ -371,7 +372,7 @@ int mmu_emu_handle_fault (unsigned long vaddr, int read_flag, int kernel_fault)
#ifdef DEBUG_MMU_EMU pr_info("%s: vaddr=%lx type=%s crp=%p\n", __func__, vaddr, - read_flag ? "read" : "write", crp); + str_read_write(read_flag), crp); #endif
segment = (vaddr >> SUN3_PMEG_SIZE_BITS) & 0x7FF;