]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: use long instead of int.
authorGlauber Costa <gcosta@redhat.com>
Mon, 30 Jun 2008 20:37:08 +0000 (17:37 -0300)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jul 2008 07:14:16 +0000 (09:14 +0200)
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 <gcosta@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/uaccess_32.h

index 8d3f02d3562c924e2c413f955c264db9a97e5d0b..eed8d9422b4d57f78a5ecfb5a41f701566282184 100644 (file)
@@ -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;                                                           \
 })