projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc38f61
)
riscv: annotate check_unaligned_access_boot_cpu() with __init
author
Clément Léger
<cleger@rivosinc.com>
Wed, 4 Oct 2023 15:14:03 +0000
(17:14 +0200)
committer
Palmer Dabbelt
<palmer@rivosinc.com>
Wed, 1 Nov 2023 15:34:57 +0000
(08:34 -0700)
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>
arch/riscv/kernel/cpufeature.c
patch
|
blob
|
history
diff --git
a/arch/riscv/kernel/cpufeature.c
b/arch/riscv/kernel/cpufeature.c
index 1cfbba65d11ae311d54729966e57fb3c9386d61c..356e5677eeb1b5e10575cd5661a26ea998e22bd7 100644
(file)
--- 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;