Skip to content

Commit 9bdd924

Browse files
Alexandre Ghitipalmer-dabbelt
authored andcommitted
riscv: Move create_tmp_mapping() to init sections
This function is only used at boot time so mark it as __init. Fixes: 96f9d4d ("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>
1 parent dd7664d commit 9bdd924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/mm/kasan_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ static void __init kasan_shallow_populate(void *start, void *end)
439439
kasan_shallow_populate_pgd(vaddr, vend);
440440
}
441441

442-
static void create_tmp_mapping(void)
442+
static void __init create_tmp_mapping(void)
443443
{
444444
void *ptr;
445445
p4d_t *base_p4d;

0 commit comments

Comments
 (0)