Skip to contentSkip to conversation

riscv: remove unused handle_exception symbol

PATCH In review Rouven Czerwinski 2 participants 2 messages May 1, 2021 – May 6, 2021 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 riscv: remove unused handle_exception symbol

Since commit 79b1feba5455 ("RISC-V: Setup exception vector early") exception vectors are setup early and the handle_exception symbol from the asm files is no longer referenced in traps.c. Remove it.

---
 arch/riscv/kernel/traps.c | 2 --
 1 file changed, 2 deletions(-)
arch/riscv/kernel/traps.c +0 -2
index 1357abf79570..6810fc9c775d 100644
@@ -25,8 +25,6 @@
 
 int show_unhandled_signals = 1;
 
-extern asmlinkage void handle_exception(void);
-
 static DEFINE_SPINLOCK(die_lock);
 
 void die(struct pt_regs *regs, const char *str)
Signature · 7 lines
2.31.1


_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv
maintainer
#1 lore raw
Quoted 14 lines · On Sat, 01 May 2021 11:53:58 PDT (-0700), [email protected] wrote:

Since commit 79b1feba5455 ("RISC-V: Setup exception vector early") exception vectors are setup early and the handle_exception symbol from the asm files is no longer referenced in traps.c. Remove it.

---
 arch/riscv/kernel/traps.c | 2 --
 1 file changed, 2 deletions(-)
arch/riscv/kernel/traps.c +0 -0
index 1357abf79570..6810fc9c775d 100644

arch/riscv/kernel/traps.c line 30

Quoted 8 lines
arch/riscv/kernel/traps.c +0 -2
@@ -25,8 +25,6 @@
 
 int show_unhandled_signals = 1;
 
-extern asmlinkage void handle_exception(void);
-
 static DEFINE_SPINLOCK(die_lock);
 
 void die(struct pt_regs *regs, const char *str)

Thanks, this is on for-next.