summaryrefslogtreecommitdiff
path: root/arch/riscv/mm/context.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@kernel.org>2021-05-16 20:59:42 +0800
committerPalmer Dabbelt <palmerdabbelt@google.com>2021-05-29 13:39:27 -0700
commit3df952ae2ac81fbc5d44b014e5462b53d1decbb5 (patch)
treeb556b227a823689fab002abf5b530d70c1d9b6dd /arch/riscv/mm/context.c
parent8c9f4940c27dd72ee68ca5af2922e4d83ca9121b (diff)
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/mm/context.c')
-rw-r--r--arch/riscv/mm/context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/mm/context.c b/arch/riscv/mm/context.c
index 83e7ae37675a..9bc46ab01c25 100644
--- a/arch/riscv/mm/context.c
+++ b/arch/riscv/mm/context.c
@@ -213,7 +213,7 @@ static inline void set_mm(struct mm_struct *mm, unsigned int cpu)
set_mm_noasid(mm);
}
-static int asids_init(void)
+static int __init asids_init(void)
{
unsigned long old;