瀏覽代碼

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 <gcosta@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Glauber Costa 17 年之前
父節點
當前提交
1dc186e82c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/asm-x86/uaccess_32.h

+ 1 - 1
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;								\
 })