public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 09/10] arch/i386/mm/fault.c: fix sparse warnings
@ 2005-03-19 13:17 domen
  2005-03-20 11:16 ` [patch 09/10 with proper signed-off] " Domen Puncer
  0 siblings, 1 reply; 2+ messages in thread
From: domen @ 2005-03-19 13:17 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, domen, adobriyan




Signed-off-by: Domen Puncer <domen@coderock.org>
---


 kj-domen/arch/i386/mm/fault.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN arch/i386/mm/fault.c~sparse-arch_i386_mm_fault arch/i386/mm/fault.c
--- kj/arch/i386/mm/fault.c~sparse-arch_i386_mm_fault	2005-03-18 20:05:20.000000000 +0100
+++ kj-domen/arch/i386/mm/fault.c	2005-03-18 20:05:20.000000000 +0100
@@ -146,7 +146,7 @@ static int __is_prefetch(struct pt_regs 
 
 		if (instr > limit)
 			break;
-		if (__get_user(opcode, (unsigned char *) instr))
+		if (__get_user(opcode, (unsigned char __user *) instr))
 			break; 
 
 		instr_hi = opcode & 0xf0; 
@@ -173,7 +173,7 @@ static int __is_prefetch(struct pt_regs 
 			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);
_

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-20 11:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-19 13:17 [patch 09/10] arch/i386/mm/fault.c: fix sparse warnings domen
2005-03-20 11:16 ` [patch 09/10 with proper signed-off] " Domen Puncer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox