From: Alexey Dobriyan <adobriyan@gmail.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH] sh64: rescue get_user/put_user
Date: Sun, 19 Oct 2008 19:29:29 +0000 [thread overview]
Message-ID: <20081019192929.GA22064@x200.localdomain> (raw)
(void *)&__pu_val, __pu_addr
is what original include/asm-sh64/uaccess.h did.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
arch/sh/include/asm/uaccess_64.h | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--- a/arch/sh/include/asm/uaccess_64.h
+++ b/arch/sh/include/asm/uaccess_64.h
@@ -26,16 +26,16 @@ do { \
retval = 0; \
switch (size) { \
case 1: \
- retval = __get_user_asm_b(x, ptr); \
+ retval = __get_user_asm_b((void *)&(x), (long)ptr);\
break; \
case 2: \
- retval = __get_user_asm_w(x, ptr); \
+ retval = __get_user_asm_w((void *)&(x), (long)ptr);\
break; \
case 4: \
- retval = __get_user_asm_l(x, ptr); \
+ retval = __get_user_asm_l((void *)&(x), (long)ptr);\
break; \
case 8: \
- retval = __get_user_asm_q(x, ptr); \
+ retval = __get_user_asm_q((void *)&(x), (long)ptr);\
break; \
default: \
__get_user_unknown(); \
@@ -54,16 +54,16 @@ do { \
retval = 0; \
switch (size) { \
case 1: \
- retval = __put_user_asm_b(x, ptr); \
+ retval = __put_user_asm_b((void *)&(x), (long)(ptr));\
break; \
case 2: \
- retval = __put_user_asm_w(x, ptr); \
+ retval = __put_user_asm_w((void *)&(x), (long)(ptr));\
break; \
case 4: \
- retval = __put_user_asm_l(x, ptr); \
+ retval = __put_user_asm_l((void *)&(x), (long)(ptr));\
break; \
case 8: \
- retval = __put_user_asm_q(x, ptr); \
+ retval = __put_user_asm_q((void *)&(x), (long)(ptr));\
break; \
default: \
__put_user_unknown(); \
next reply other threads:[~2008-10-19 19:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-19 19:29 Alexey Dobriyan [this message]
2008-10-20 2:28 ` [PATCH] sh64: rescue get_user/put_user Paul Mundt
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=20081019192929.GA22064@x200.localdomain \
--to=adobriyan@gmail.com \
--cc=linux-sh@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