Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b91dc336cc7e0c9843f87ad0ba4cdbc821d69549
Commit:     b91dc336cc7e0c9843f87ad0ba4cdbc821d69549
Parent:     50c46637aa894f904e2fb39086a3d7732f68bd50
Author:     Chris Zankel <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 3 15:54:36 2007 -0700
Committer:  Chris Zankel <[EMAIL PROTECTED]>
CommitDate: Mon Aug 27 13:52:49 2007 -0700

    [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: Chris Zankel <[EMAIL PROTECTED]>
---
 arch/xtensa/kernel/traps.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c
index c5e62f9..8be99c7 100644
--- a/arch/xtensa/kernel/traps.c
+++ b/arch/xtensa/kernel/traps.c
@@ -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;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to