Unverified Commit 90b11b47 authored by Clément Léger's avatar Clément Léger Committed by Palmer Dabbelt
Browse files

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: default avatarClément Léger <cleger@rivosinc.com>
Reviewed-by: default avatarEvan Green <evan@rivosinc.com>
Link: https://lore.kernel.org/r/20231004151405.521596-7-cleger@rivosinc.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent bc38f613
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -645,7 +645,7 @@ void check_unaligned_access(int cpu)
	__free_pages(page, get_order(MISALIGNED_BUFFER_SIZE));
}

static int check_unaligned_access_boot_cpu(void)
static int __init check_unaligned_access_boot_cpu(void)
{
	check_unaligned_access(0);
	return 0;