linux/arch/powerpc
Christophe Leroy 3c8016e681 powerpc: Refactor __kernel_map_pages()
__kernel_map_pages() is almost identical for PPC32 and RADIX.

Refactor it.

On PPC32 it is not needed for KFENCE, but to keep it simple
just make it similar to PPC64.

Move the prototype of hash__kernel_map_pages() into mmu_decl.h to allow
IS_ENABLED() to work on 32-bit.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/3656d47c53bff577739dac536dbae31fff52f6d8.1708078640.git.christophe.leroy@csgroup.eu
2024-03-03 22:18:45 +11:00
..
boot powerpc/fsl: Fix fsl,tmu-calibration to match the schema 2023-12-19 21:53:56 +11:00
configs Revert "powerpc/ps3_defconfig: Disable PPC64_BIG_ENDIAN_ELF_ABI_V2" 2024-02-21 23:15:26 +11:00
crypto crypto: p10-aes-gcm - Avoid -Wstringop-overflow warnings 2023-12-01 18:03:26 +08:00
include powerpc: Refactor __kernel_map_pages() 2024-03-03 22:18:45 +11:00
kernel powerpc/kprobes: Handle error returned by set_memory_rox() 2024-02-22 21:55:33 +11:00
kexec Quite a lot of kexec work this time around. Many singleton patches in 2024-01-09 11:46:20 -08:00
kvm powerpc: Add Power11 architected and raw mode 2024-02-21 23:11:00 +11:00
lib powerpc: Use user_mode() macro when possible 2024-02-22 21:55:33 +11:00
math-emu powerpc/math-emu: Inhibit W=1 warnings 2022-09-08 11:11:18 +10:00
mm powerpc: Refactor __kernel_map_pages() 2024-03-03 22:18:45 +11:00
net powerpc/bpf: use bpf_jit_binary_pack_[alloc|finalize|free] 2023-10-23 20:33:19 +11:00
perf powerpc: Use user_mode() macro when possible 2024-02-22 21:55:33 +11:00
platforms powerpc: papr_scm: Convert to platform remove callback returning void 2024-02-22 21:55:33 +11:00
purgatory powerpc/purgatory: remove PGO flags 2023-06-12 11:31:50 -07:00
sysdev powerpc: pmi: Convert to platform remove callback returning void 2024-02-22 21:55:33 +11:00
tools powerpc/tools: Pass -mabi=elfv2 to gcc-check-mprofile-kernel.sh 2023-10-20 17:46:33 +11:00
xmon powerpc: Use user_mode() macro when possible 2024-02-22 21:55:33 +11:00
Kbuild
Kconfig powerpc fixes for 6.8 #2 2024-01-21 11:04:29 -08:00
Kconfig.debug powerpc/ps3: move udbg_shutdown_ps3gelic prototype 2023-11-21 12:06:50 +11:00
Makefile powerpc/Makefile: Auto detect cross compiler 2023-12-07 23:34:38 +11:00
Makefile.postlink kbuild: remove ARCH_POSTLINK from module builds 2023-10-28 21:10:08 +09:00