提交 fc048b5b 编写于 作者: A Al Viro 提交者: Linus Torvalds

[PATCH] arm: use unsigned long instead of unsigned int in get_user()

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 35d59fc5
...@@ -110,7 +110,7 @@ extern int __get_user_4(void *); ...@@ -110,7 +110,7 @@ extern int __get_user_4(void *);
#define get_user(x,p) \ #define get_user(x,p) \
({ \ ({ \
const register typeof(*(p)) __user *__p asm("r0") = (p);\ const register typeof(*(p)) __user *__p asm("r0") = (p);\
register unsigned int __r2 asm("r2"); \ register unsigned long __r2 asm("r2"); \
register int __e asm("r0"); \ register int __e asm("r0"); \
switch (sizeof(*(__p))) { \ switch (sizeof(*(__p))) { \
case 1: \ case 1: \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册