diff options
author | 2025-01-20 16:40:22 +0100 | |
---|---|---|
committer | 2025-02-03 14:32:51 +0100 | |
commit | 723be3c6ab31b320afe0075e2eb9b8dd41f3b6d1 (patch) | |
tree | b06ca5e1db15f9b3290af66c97dd9941bf2edba9 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | m68k: sun3: Use str_read_write() helper in mmu_emu_handle_fault() (diff) | |
download | wireguard-linux-723be3c6ab31b320afe0075e2eb9b8dd41f3b6d1.tar.xz wireguard-linux-723be3c6ab31b320afe0075e2eb9b8dd41f3b6d1.zip |
m68k: sun3: Fix DEBUG_MMU_EMU build
With DEBUG_MMU_EMU enabled:
arch/m68k/sun3/mmu_emu.c: In function ‘mmu_emu_handle_fault’:
arch/m68k/sun3/mmu_emu.c:420:38: error: implicit declaration of function ‘get_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
420 | pr_info("seg:%ld crp:%p ->", get_fs().seg, crp);
| ^~~~~~
[...]
arch/m68k/sun3/mmu_emu.c:420:46: error: request for member ‘seg’ in something not a structure or union
420 | pr_info("seg:%ld crp:%p ->", get_fs().seg, crp);
| ^
Fix this by reintroducing and using a helper to retrieve the current
value of the DFC register.
While at it, replace "%p" by "%px", as there is no point in printing
obfuscated pointers during debugging.
Fixes: 9fde0348640252c7 ("m68k: Remove set_fs()")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/b1d12a1d24b4aea9f98d905383ba932b2dc382e6.1737387419.git.geert@linux-m68k.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions