patch-2.2.16 linux/include/asm-i386/uaccess.h

Next file: linux/include/asm-mips/init.h
Previous file: linux/include/asm-i386/softirq.h
Back to the patch index
Back to the overall index

diff -urN v2.2.15/linux/include/asm-i386/uaccess.h linux/include/asm-i386/uaccess.h
@@ -42,7 +42,7 @@
 	unsigned long flag,sum; \
 	asm("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4; sbbl $0,%0" \
 		:"=&r" (flag), "=r" (sum) \
-		:"1" (addr),"g" (size),"g" (current->addr_limit.seg)); \
+		:"1" (addr),"g" ((int)size),"g" (current->addr_limit.seg)); \
 	flag; })
 
 #ifdef CONFIG_X86_WP_WORKS_OK

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)