]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[XTENSA] fix wrong usage of __init and __initdata in traps.c
authorChris Zankel <chris@zankel.net>
Fri, 3 Aug 2007 22:54:36 +0000 (15:54 -0700)
committerChris Zankel <chris@zankel.net>
Mon, 27 Aug 2007 20:52:49 +0000 (13:52 -0700)
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>
arch/xtensa/kernel/traps.c

index c5e62f9d9f50068147b2db824dcc4d177fa3f041..8be99c777d9d2b55c69c39f8252630f82192a1b1 100644 (file)
@@ -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;