]> git.hungrycats.org Git - linux/commit
riscv: Move create_tmp_mapping() to init sections
authorAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 4 Jul 2023 07:43:57 +0000 (09:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:48:38 +0000 (09:48 +0200)
commitd1f8b6832c975d7f86c3c10e97a58f73acc509b7
tree4262c3106acfac64bfcf456199b809e6da0d57c6
parentdd4652a92dad7ab74c67110ab7ce8212a7c4558a
riscv: Move create_tmp_mapping() to init sections

commit 9bdd924803787ceeb10f1ea399e91d75fb05d3a7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/mm/kasan_init.c