[PATCH 0/5] Small cleanup for mm/init.c and address conversion macros

From: Alexandre Ghiti
Date: Fri Jul 23 2021 - 09:01:37 EST

The first patch allows to have only one definition of the address
conversion macros for all kernel types.

The following patches bring small cleanups to mm/init.c and the last
patch makes the size of the DTB early mapping consistent between 32-bit
and 64-bit kernels.

Alexandre Ghiti (5)
riscv: Introduce va_kernel_pa_offset for 32-bit kernel
riscv: Get rid of map_size parameter to create_kernel_page_table
riscv: Use __maybe_unused instead of #ifdefs around variable
riscv: Simplify BUILTIN_DTB device tree mapping handling
riscv: Move early fdt mapping creation in its own function

arch/riscv/include/asm/page.h | 15 +----
arch/riscv/mm/init.c | 121 +++++++++++++++-------------------
2 files changed, 54 insertions(+), 82 deletions(-)