aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorStafford Horne2022-02-05 22:44:28 +0900
committerStafford Horne2022-05-23 17:15:49 +0900
commit024b58f3d92de2d19e2222f841c103127ee54684 (patch)
tree2bcd603556a9d7de5e6682f92a90119c1e5b9d65 /arch
parentde901d12df896ffab7f08b26a5abcbc5e720b455 (diff)
openrisc/traps: Declare unhandled_exception for asmlinkage
Noticed this when workin on warnings. As unhandled_exception is used in entry.S we should attribute it with asmlinkage. Signed-off-by: Stafford Horne <shorne@gmail.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/openrisc/kernel/traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/openrisc/kernel/traps.c b/arch/openrisc/kernel/traps.c
index 99cd2e6f8873..fd9a0f2b66c4 100644
--- a/arch/openrisc/kernel/traps.c
+++ b/arch/openrisc/kernel/traps.c
@@ -235,7 +235,7 @@ void __noreturn die(const char *str, struct pt_regs *regs, long err)
make_task_dead(SIGSEGV);
}
-void unhandled_exception(struct pt_regs *regs, int ea, int vector)
+asmlinkage void unhandled_exception(struct pt_regs *regs, int ea, int vector)
{
printk("Unable to handle exception at EA =0x%x, vector 0x%x",
ea, vector);