diff options
author | Alexandre Ghiti <alexghiti@rivosinc.com> | 2023-07-04 10:43:57 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-08-31 10:18:31 +0300 |
commit | 9bdd924803787ceeb10f1ea399e91d75fb05d3a7 (patch) | |
tree | 2bb5985db34c03d1cb277e9fa69c9b220220631b /arch/riscv | |
parent | dd7664d67b478afeb79a89e4586c2cd7707d17d6 (diff) | |
download | linux-9bdd924803787ceeb10f1ea399e91d75fb05d3a7.tar.xz |
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>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/mm/kasan_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/mm/kasan_init.c b/arch/riscv/mm/kasan_init.c index b88914741f3d..435e94a5b1bb 100644 --- a/arch/riscv/mm/kasan_init.c +++ b/arch/riscv/mm/kasan_init.c @@ -439,7 +439,7 @@ static void __init kasan_shallow_populate(void *start, void *end) kasan_shallow_populate_pgd(vaddr, vend); } -static void create_tmp_mapping(void) +static void __init create_tmp_mapping(void) { void *ptr; p4d_t *base_p4d; |