From: Clément Léger Date: Wed, 4 Oct 2023 15:14:03 +0000 (+0200) Subject: riscv: annotate check_unaligned_access_boot_cpu() with __init X-Git-Tag: v6.7-rc1~21^2~29^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=90b11b470b2e88ff583e04be109e6441cb69f54d;p=linux-block.git 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 Reviewed-by: Evan Green Link: https://lore.kernel.org/r/20231004151405.521596-7-cleger@rivosinc.com Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index 1cfbba65d11a..356e5677eeb1 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -645,7 +645,7 @@ out: __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;