riscv: Move create_tmp_mapping() to init sections
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 4 Jul 2023 07:43:57 +0000 (09:43 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Thu, 31 Aug 2023 07:18:31 +0000 (00:18 -0700)
commit9bdd924803787ceeb10f1ea399e91d75fb05d3a7
tree2bb5985db34c03d1cb277e9fa69c9b220220631b
parentdd7664d67b478afeb79a89e4586c2cd7707d17d6
riscv: Move create_tmp_mapping() to init sections

This function is only used at boot time so mark it as __init.

Fixes: 96f9d4daf745 ("riscv: Rework kasan population functions")
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Link: https://lore.kernel.org/r/20230704074357.233982-2-alexghiti@rivosinc.com
Cc: stable@vger.kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/mm/kasan_init.c