Skip to content

Commit

Permalink
openrisc/traps: Declare unhandled_exception for asmlinkage
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stffrdhrn committed May 23, 2022
1 parent de901d1 commit 024b58f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/openrisc/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 024b58f

Please sign in to comment.