Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b91dc336 authored by Chris Zankel's avatar Chris Zankel
Browse files

[XTENSA] fix wrong usage of __init and __initdata in traps.c



A variable was defined with __init instead of __initdata and
the function accessing that variable wasn't initialized with
__init.

Signed-off-by: default avatarChris Zankel <chris@zankel.net>
parent 50c46637
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -83,7 +83,7 @@ typedef struct {
	void* handler;
} dispatch_init_table_t;

dispatch_init_table_t __init dispatch_init_table[] = {
static dispatch_init_table_t __initdata dispatch_init_table[] = {

{ EXCCAUSE_ILLEGAL_INSTRUCTION,	0,	   do_illegal_instruction},
{ EXCCAUSE_SYSTEM_CALL,		KRNL,	   fast_syscall_kernel },
@@ -305,7 +305,7 @@ do_debug(struct pt_regs *regs)

#define set_handler(idx,handler) (exc_table[idx] = (unsigned long) (handler))

void trap_init(void)
void __init trap_init(void)
{
	int i;