From: Glauber Costa Date: Mon, 30 Jun 2008 20:37:08 +0000 (-0300) Subject: x86: use long instead of int. X-Git-Tag: v2.6.27-rc1~1106^2~46^2~16 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1dc186e82c1ab476ef83080adca43a70969b01cd;p=linux-2.6-omap-h63xx.git x86: use long instead of int. Do not refer to the processor word-size with int, as it won't work with x86_64. Use long instead. Signed-off-by: Glauber Costa Signed-off-by: H. Peter Anvin Signed-off-by: Ingo Molnar --- diff --git a/include/asm-x86/uaccess_32.h b/include/asm-x86/uaccess_32.h index 8d3f02d3562..eed8d9422b4 100644 --- a/include/asm-x86/uaccess_32.h +++ b/include/asm-x86/uaccess_32.h @@ -62,7 +62,7 @@ extern struct movsl_mask { __chk_user_ptr(addr); \ asm("add %3,%1 ; sbb %0,%0; cmp %1,%4; sbb $0,%0" \ :"=&r" (flag), "=r" (roksum) \ - :"1" (addr), "g" ((int)(size)), \ + :"1" (addr), "g" ((long)(size)), \ "rm" (current_thread_info()->addr_limit.seg)); \ flag; \ })