Skip to content

Commit

Permalink
[XTENSA] fix wrong usage of __init and __initdata in traps.c
Browse files Browse the repository at this point in the history
A variable was defined with __init instead of __initdata and
the function accessing that variable wasn't initialized with
__init.

Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Chris Zankel committed Aug 27, 2007
1 parent 50c4663 commit b91dc33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/xtensa/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit b91dc33

Please sign in to comment.