Skip to content

Commit 90b11b4

Browse files
clementlegerpalmer-dabbelt
authored andcommitted
riscv: annotate check_unaligned_access_boot_cpu() with __init
This function is solely called as an initcall, thus annotate it with __init. Signed-off-by: Clément Léger <cleger@rivosinc.com> Reviewed-by: Evan Green <evan@rivosinc.com> Link: https://lore.kernel.org/r/20231004151405.521596-7-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent bc38f61 commit 90b11b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/kernel/cpufeature.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ void check_unaligned_access(int cpu)
645645
__free_pages(page, get_order(MISALIGNED_BUFFER_SIZE));
646646
}
647647

648-
static int check_unaligned_access_boot_cpu(void)
648+
static int __init check_unaligned_access_boot_cpu(void)
649649
{
650650
check_unaligned_access(0);
651651
return 0;

0 commit comments

Comments
 (0)