microblaze: fix __get_user()
commit e98b9e37ae04562d52c96f46b3cf4c2e80222dc1 upstream. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
99526912c9
commit
fdbeffb7a3
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ extern long __user_bad(void);
|
||||||
|
|
||||||
#define __get_user(x, ptr) \
|
#define __get_user(x, ptr) \
|
||||||
({ \
|
({ \
|
||||||
unsigned long __gu_val; \
|
unsigned long __gu_val = 0; \
|
||||||
/*unsigned long __gu_ptr = (unsigned long)(ptr);*/ \
|
/*unsigned long __gu_ptr = (unsigned long)(ptr);*/ \
|
||||||
long __gu_err; \
|
long __gu_err; \
|
||||||
switch (sizeof(*(ptr))) { \
|
switch (sizeof(*(ptr))) { \
|
||||||
|
|
Loading…
Add table
Reference in a new issue