From: Glauber Costa Date: Mon, 30 Jun 2008 20:37:08 +0000 (-0300) Subject: x86: use long instead of int. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1dc186e82c1ab476ef83080adca43a70969b01cd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 8d3f02d3562c..eed8d9422b4d 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; \ })