From: Glauber Costa Date: Mon, 30 Jun 2008 20:37:08 +0000 (-0300) Subject: x86: use long instead of int. X-Git-Tag: upstream/snapshot3+hdmi~24385^2~48^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dc186e82c1ab476ef83080adca43a70969b01cd;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 8d3f02d..eed8d94 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; \ })