Skip to content

Commit

Permalink
[PATCH] arch/i386/mm/fault.c: fix sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Domen Puncer authored and Linus Torvalds committed Jun 25, 2005
1 parent 77617bd commit c7c5844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/i386/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static int __is_prefetch(struct pt_regs *regs, unsigned long addr)

if (instr > limit)
break;
if (__get_user(opcode, (unsigned char *) instr))
if (__get_user(opcode, (unsigned char __user *) instr))
break;

instr_hi = opcode & 0xf0;
Expand All @@ -173,7 +173,7 @@ static int __is_prefetch(struct pt_regs *regs, unsigned long addr)
scan_more = 0;
if (instr > limit)
break;
if (__get_user(opcode, (unsigned char *) instr))
if (__get_user(opcode, (unsigned char __user *) instr))
break;
prefetch = (instr_lo == 0xF) &&
(opcode == 0x0D || opcode == 0x18);
Expand Down

0 comments on commit c7c5844

Please sign in to comment.