* [PATCH 4/8] gcc41 fixes: v850 get_user()
@ 2006-02-08 20:01 Al Viro
0 siblings, 0 replies; only message in thread
From: Al Viro @ 2006-02-08 20:01 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-08 20:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-08 20:01 [PATCH 4/8] gcc41 fixes: v850 get_user() Al Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®