Commit c7c58445 authored by Domen Puncer's avatar Domen Puncer Committed by Linus Torvalds

[PATCH] arch/i386/mm/fault.c: fix sparse warnings

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@mail.ru>
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 77617bd8
...@@ -146,7 +146,7 @@ static int __is_prefetch(struct pt_regs *regs, unsigned long addr) ...@@ -146,7 +146,7 @@ static int __is_prefetch(struct pt_regs *regs, unsigned long addr)
if (instr > limit) if (instr > limit)
break; break;
if (__get_user(opcode, (unsigned char *) instr)) if (__get_user(opcode, (unsigned char __user *) instr))
break; break;
instr_hi = opcode & 0xf0; instr_hi = opcode & 0xf0;
...@@ -173,7 +173,7 @@ static int __is_prefetch(struct pt_regs *regs, unsigned long addr) ...@@ -173,7 +173,7 @@ static int __is_prefetch(struct pt_regs *regs, unsigned long addr)
scan_more = 0; scan_more = 0;
if (instr > limit) if (instr > limit)
break; break;
if (__get_user(opcode, (unsigned char *) instr)) if (__get_user(opcode, (unsigned char __user *) instr))
break; break;
prefetch = (instr_lo == 0xF) && prefetch = (instr_lo == 0xF) &&
(opcode == 0x0D || opcode == 0x18); (opcode == 0x0D || opcode == 0x18);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment