diff options
author | David Howells <dhowells@redhat.com> | 2006-01-08 10:01:24 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-09 05:13:38 +0100 |
commit | 5c15d41bab185431a9a28982b5aaac251dde4556 (patch) | |
tree | 5cc009ca5a0822f32f73961556a0a4401a38e8c9 /include/asm-frv/uaccess.h | |
parent | [PATCH] frv: force serial driver inclusion (diff) | |
download | linux-5c15d41bab185431a9a28982b5aaac251dde4556.tar.xz linux-5c15d41bab185431a9a28982b5aaac251dde4556.zip |
[PATCH] frv: make get_user macro cast pointers
Make the get_user macro cast the source pointer to an appropriate type for the
specified size.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-frv/uaccess.h')
-rw-r--r-- | include/asm-frv/uaccess.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-frv/uaccess.h b/include/asm-frv/uaccess.h index 991b50fbba24..b6bcbe01f6ee 100644 --- a/include/asm-frv/uaccess.h +++ b/include/asm-frv/uaccess.h @@ -180,16 +180,16 @@ do { \ \ switch (sizeof(*(ptr))) { \ case 1: \ - __get_user_asm(__gu_err, __gu_val, ptr, "ub", "=r"); \ + __get_user_asm(__gu_err, *(u8*)&__gu_val, ptr, "ub", "=r"); \ break; \ case 2: \ - __get_user_asm(__gu_err, __gu_val, ptr, "uh", "=r"); \ + __get_user_asm(__gu_err, *(u16*)&__gu_val, ptr, "uh", "=r"); \ break; \ case 4: \ - __get_user_asm(__gu_err, __gu_val, ptr, "", "=r"); \ + __get_user_asm(__gu_err, *(u32*)&__gu_val, ptr, "", "=r"); \ break; \ case 8: \ - __get_user_asm(__gu_err, __gu_val, ptr, "d", "=e"); \ + __get_user_asm(__gu_err, *(u64*)&__gu_val, ptr, "d", "=e"); \ break; \ default: \ __gu_err = __get_user_bad(); \ |