Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

m68k: sun3: Use str_read_write() helper in mmu_emu_handle_fault()

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>

authored by

Thorsten Blum and committed by
Geert Uytterhoeven
751b3d8d 2014c95a

+2 -1
+2 -1
arch/m68k/sun3/mmu_emu.c
··· 17 17 #include <linux/bitops.h> 18 18 #include <linux/module.h> 19 19 #include <linux/sched/mm.h> 20 + #include <linux/string_choices.h> 20 21 21 22 #include <asm/setup.h> 22 23 #include <asm/traps.h> ··· 372 371 373 372 #ifdef DEBUG_MMU_EMU 374 373 pr_info("%s: vaddr=%lx type=%s crp=%p\n", __func__, vaddr, 375 - read_flag ? "read" : "write", crp); 374 + str_read_write(read_flag), crp); 376 375 #endif 377 376 378 377 segment = (vaddr >> SUN3_PMEG_SIZE_BITS) & 0x7FF;