aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Léger <[email protected]>2023-10-04 17:14:03 +0200
committerPalmer Dabbelt <[email protected]>2023-11-01 08:34:57 -0700
commit90b11b470b2e88ff583e04be109e6441cb69f54d (patch)
tree6fc764c58c5703018c9cecdc619293508862cc65
parentbc38f61313d316d74c16ce7287d6dba2f42502c9 (diff)
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 <[email protected]> Reviewed-by: Evan Green <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
-rw-r--r--arch/riscv/kernel/cpufeature.c2
1 files changed, 1 insertions, 1 deletions
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;