xtensa: clean up exception handler prototypes
authorMax Filippov <jcmvbkbc@gmail.com>
Thu, 21 Apr 2022 09:35:23 +0000 (02:35 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 May 2022 02:51:22 +0000 (19:51 -0700)
commitfc55402b84385bdb907c24f891e3e5df464f027c
treeef690638d268883a1b63e2a5f3b8ea29264a129c
parentdb0d07fa192a3c05776875f4a851588d7dfc9f96
xtensa: clean up exception handler prototypes

Exception handlers are currently passed as void pointers because they
may have one or two parameters. Only two handlers uses the second
parameter and it is available in the struct pt_regs anyway. Make all
handlers have only one parameter, introduce xtensa_exception_handler
type for handlers and use it in trap_set_handler.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/traps.h
arch/xtensa/kernel/s32c1i_selftest.c
arch/xtensa/kernel/traps.c