Commit cd1fb9ea authored by Ralf Baechle's avatar Ralf Baechle

Revert "[MIPS] Fix warning in get_user when fetching pointer object from userspace."

This reverts commit 4ed3a77f.
parent 84b47a95
...@@ -265,6 +265,8 @@ do { \ ...@@ -265,6 +265,8 @@ do { \
*/ */
#define __get_user_asm_ll32(val, addr) \ #define __get_user_asm_ll32(val, addr) \
{ \ { \
unsigned long long __gu_tmp; \
\
__asm__ __volatile__( \ __asm__ __volatile__( \
"1: lw %1, (%3) \n" \ "1: lw %1, (%3) \n" \
"2: lw %D1, 4(%3) \n" \ "2: lw %D1, 4(%3) \n" \
...@@ -279,8 +281,9 @@ do { \ ...@@ -279,8 +281,9 @@ do { \
" " __UA_ADDR " 1b, 4b \n" \ " " __UA_ADDR " 1b, 4b \n" \
" " __UA_ADDR " 2b, 4b \n" \ " " __UA_ADDR " 2b, 4b \n" \
" .previous \n" \ " .previous \n" \
: "=r" (__gu_err), "=&r" (val) \ : "=r" (__gu_err), "=&r" (__gu_tmp) \
: "0" (0), "r" (addr), "i" (-EFAULT)); \ : "0" (0), "r" (addr), "i" (-EFAULT)); \
(val) = (__typeof__(*(addr))) __gu_tmp; \
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment