Fix some sparse warnings introduced by "[MIPS] Add support for MIPS CMP platform." patch. Signed-off-by: Atsushi Nemoto <anemo@xxxxxxxxxxxxx> --- Patch against linux-queue tree. arch/mips/kernel/traps.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c index 070f787..8686133 100644 --- a/arch/mips/kernel/traps.c +++ b/arch/mips/kernel/traps.c @@ -196,12 +196,12 @@ EXPORT_SYMBOL(dump_stack); static void show_code(unsigned int __user *pc) { long i; - unsigned short *pc16 = NULL; + unsigned short __user *pc16 = NULL; printk("\nCode:"); - if ((unsigned int)pc & 1) - pc16 = (unsigned short *)((unsigned int)pc & ~1); + if ((unsigned long)pc & 1) + pc16 = (unsigned short __user *)((unsigned long)pc & ~1); for(i = -3 ; i < 6 ; i++) { unsigned int insn; if (pc16 ? __get_user(insn, pc16 + i) : __get_user(insn, pc + i)) {