Skip to content

Commit 024b58f

Browse files
committed
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 <[email protected]>
1 parent de901d1 commit 024b58f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/openrisc/kernel/traps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ void __noreturn die(const char *str, struct pt_regs *regs, long err)
235235
make_task_dead(SIGSEGV);
236236
}
237237

238-
void unhandled_exception(struct pt_regs *regs, int ea, int vector)
238+
asmlinkage void unhandled_exception(struct pt_regs *regs, int ea, int vector)
239239
{
240240
printk("Unable to handle exception at EA =0x%x, vector 0x%x",
241241
ea, vector);

0 commit comments

Comments
 (0)