]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] Make show_code static and add __user tag
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 13 Jul 2007 14:51:46 +0000 (23:51 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 Jul 2007 16:40:01 +0000 (17:40 +0100)
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/traps.c

index 6f3e5c1424d36b92919440b11a1f7c47d6e63e29..37c562c4c8176f3dfe8dd88251ef1899b42b2ccf 100644 (file)
@@ -187,7 +187,7 @@ void dump_stack(void)
 
 EXPORT_SYMBOL(dump_stack);
 
-void show_code(unsigned int *pc)
+static void show_code(unsigned int __user *pc)
 {
        long i;
 
@@ -305,7 +305,7 @@ void show_registers(struct pt_regs *regs)
        printk("Process %s (pid: %d, threadinfo=%p, task=%p)\n",
                current->comm, current->pid, current_thread_info(), current);
        show_stacktrace(current, regs);
-       show_code((unsigned int *) regs->cp0_epc);
+       show_code((unsigned int __user *) regs->cp0_epc);
        printk("\n");
 }
 
@@ -865,7 +865,7 @@ asmlinkage void do_mcheck(struct pt_regs *regs)
                dump_tlb_all();
        }
 
-       show_code((unsigned int *) regs->cp0_epc);
+       show_code((unsigned int __user *) regs->cp0_epc);
 
        /*
         * Some chips may have other causes of machine check (e.g. SB1