[PATCH] arch/i386/kernel/traps.c: fix sparse warnings

Signed-off-by: Alexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Domen Puncer and committed by Linus Torvalds 3f3ae347 29a1d2d1

+7 -7
+7 -7
arch/i386/kernel/traps.c
··· 235 235 * time of the fault.. 236 236 */ 237 237 if (in_kernel) { 238 - u8 *eip; 238 + u8 __user *eip; 239 239 240 240 printk("\nStack: "); 241 241 show_stack(NULL, (unsigned long*)esp); 242 242 243 243 printk("Code: "); 244 244 245 - eip = (u8 *)regs->eip - 43; 245 + eip = (u8 __user *)regs->eip - 43; 246 246 for (i = 0; i < 64; i++, eip++) { 247 247 unsigned char c; 248 248 249 - if (eip < (u8 *)PAGE_OFFSET || __get_user(c, eip)) { 249 + if (eip < (u8 __user *)PAGE_OFFSET || __get_user(c, eip)) { 250 250 printk(" Bad EIP value."); 251 251 break; 252 252 } 253 - if (eip == (u8 *)regs->eip) 253 + if (eip == (u8 __user *)regs->eip) 254 254 printk("<%02x> ", c); 255 255 else 256 256 printk("%02x ", c); ··· 274 274 275 275 if (eip < PAGE_OFFSET) 276 276 goto no_bug; 277 - if (__get_user(ud2, (unsigned short *)eip)) 277 + if (__get_user(ud2, (unsigned short __user *)eip)) 278 278 goto no_bug; 279 279 if (ud2 != 0x0b0f) 280 280 goto no_bug; 281 - if (__get_user(line, (unsigned short *)(eip + 2))) 281 + if (__get_user(line, (unsigned short __user *)(eip + 2))) 282 282 goto bug; 283 - if (__get_user(file, (char **)(eip + 4)) || 283 + if (__get_user(file, (char * __user *)(eip + 4)) || 284 284 (unsigned long)file < PAGE_OFFSET || __get_user(c, file)) 285 285 file = "<bad filename>"; 286 286