mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
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>
This commit is contained in:
parent
bc38f61313
commit
90b11b470b
1 changed files with 1 additions and 1 deletions
|
@ -645,7 +645,7 @@ void check_unaligned_access(int cpu)
|
||||||
__free_pages(page, get_order(MISALIGNED_BUFFER_SIZE));
|
__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);
|
check_unaligned_access(0);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue