Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 87304
b: refs/heads/master
c: 12d4873
h: refs/heads/master
v: v3
  • Loading branch information
Yoshinori Sato authored and Linus Torvalds committed Mar 13, 2008
1 parent e318dd9 commit 1124b88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb39380b8d683b55630ba5ba381f4e43e417420e
refs/heads/master: 12d48739d0b5d96efe6b7d26107f5572c6215f4a
11 changes: 4 additions & 7 deletions trunk/include/asm-h8300/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,22 +91,19 @@ extern int __put_user_bad(void);
#define get_user(x, ptr) \
({ \
int __gu_err = 0; \
uint32_t __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 (*(ptr))); \
case 8: \
break; \
default: \
__gu_val = 0; \
__gu_err = __get_user_bad(); \
__gu_val = 0; \
break; \
} \
(x) = (typeof(*(ptr)))__gu_val; \
(x) = __gu_val; \
__gu_err; \
})
#define __get_user(x, ptr) get_user(x, ptr)
Expand Down

0 comments on commit 1124b88

Please sign in to comment.