From: Al Viro <viro@ftp.linux.org.uk>
To: linux-kernel@vger.kernel.org
Subject: [PATCH 4/8] gcc41 fixes: v850 get_user()
Date: Wed, 08 Feb 2006 20:01:53 +0000 [thread overview]
Message-ID: <E1F6vVh-0008Bu-Kg@ZenIV.linux.org.uk> (raw)
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
reply other threads:[~2006-02-08 20:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1F6vVh-0008Bu-Kg@ZenIV.linux.org.uk \
--to=viro@ftp.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®