diff options
author | Jisheng Zhang <jszhang@kernel.org> | 2021-03-30 02:22:21 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-04-26 08:25:07 -0700 |
commit | 1987501b1130c6b4b7e1cef4b9c1dc9a8adae025 (patch) | |
tree | ac8706cf99e89299276273498ce05a6b58b90644 /arch/riscv/kernel/traps.c | |
parent | 0df68ce4c26a48115a9e8d45e24f18d964a10050 (diff) | |
download | linux-1987501b1130c6b4b7e1cef4b9c1dc9a8adae025.tar.gz |
riscv: add __init section marker to some functions
They 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/traps.c')
-rw-r--r-- | arch/riscv/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/traps.c b/arch/riscv/kernel/traps.c index 3ed2c23601a0..6272da7b19d2 100644 --- a/arch/riscv/kernel/traps.c +++ b/arch/riscv/kernel/traps.c @@ -195,6 +195,6 @@ int is_valid_bugaddr(unsigned long pc) #endif /* CONFIG_GENERIC_BUG */ /* stvec & scratch is already set from head.S */ -void trap_init(void) +void __init trap_init(void) { } |