diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2021-05-16 20:59:42 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-05-29 13:39:27 -0700 |
commit | 3df952ae2ac81fbc5d44b014e5462b53d1decbb5 (patch) | |
tree | b556b227a823689fab002abf5b530d70c1d9b6dd /arch/riscv/kernel | |
parent | 8c9f4940c27dd72ee68ca5af2922e4d83ca9121b (diff) | |
download | linux-stable-3df952ae2ac81fbc5d44b014e5462b53d1decbb5.tar.gz linux-stable-3df952ae2ac81fbc5d44b014e5462b53d1decbb5.tar.bz2 linux-stable-3df952ae2ac81fbc5d44b014e5462b53d1decbb5.zip |
riscv: Add __init section marker to some functions again
These functions are not needed after booting, so mark them as __init
to move them to the __init section.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r-- | arch/riscv/kernel/cpufeature.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index a2848dc36927..d959d207a40d 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -59,7 +59,7 @@ bool __riscv_isa_extension_available(const unsigned long *isa_bitmap, int bit) } EXPORT_SYMBOL_GPL(__riscv_isa_extension_available); -void riscv_fill_hwcap(void) +void __init riscv_fill_hwcap(void) { struct device_node *node; const char *isa; |