projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de901d1
)
openrisc/traps: Declare unhandled_exception for asmlinkage
author
Stafford Horne
<shorne@gmail.com>
Sat, 5 Feb 2022 13:44:28 +0000
(22:44 +0900)
committer
Stafford Horne
<shorne@gmail.com>
Mon, 23 May 2022 08:15:49 +0000
(17:15 +0900)
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>
arch/openrisc/kernel/traps.c
patch
|
blob
|
history
diff --git
a/arch/openrisc/kernel/traps.c
b/arch/openrisc/kernel/traps.c
index
99cd2e6
..
fd9a0f2
100644
(file)
--- 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);