lkml.org 
[lkml]   [2006]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 4/8] gcc41 fixes: v850 get_user()
From
Date
Date: 1135880312 -0500

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

---

include/asm-v850/uaccess.h | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)

f24dd1b50636edb17b875d8b3290ff27727af0c3
diff --git a/include/asm-v850/uaccess.h b/include/asm-v850/uaccess.h
index 64563c4..b6c4409 100644
--- a/include/asm-v850/uaccess.h
+++ b/include/asm-v850/uaccess.h
@@ -59,18 +59,13 @@ extern int bad_user_access_length (void)
#define __get_user(var, ptr) \
({ \
int __gu_err = 0; \
- typeof(*(ptr)) __gu_val = 0; \
+ typeof(*(ptr)) __gu_val = *ptr; \
switch (sizeof (*(ptr))) { \
case 1: \
case 2: \
case 4: \
- __gu_val = *(ptr); \
- break; \
- case 8: \
- memcpy(&__gu_val, ptr, sizeof(__gu_val)); \
break; \
default: \
- __gu_val = 0; \
__gu_err = __get_user_bad (); \
break; \
} \
--
0.99.9.GIT
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-08 21:05    [W:0.031 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site