Skip to content

Commit

Permalink
[MIPS] 32-bit: Fix warning about cast for fetching pointer from users…
Browse files Browse the repository at this point in the history
…pace.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
ralfbaechle committed Feb 13, 2007
1 parent d01f06e commit cb66fb3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions include/asm-mips/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,10 @@ do { \
*/
#define __get_user_asm_ll32(val, addr) \
{ \
unsigned long long __gu_tmp; \
union { \
unsigned long long l; \
__typeof__(*(addr)) t; \
} __gu_tmp; \
\
__asm__ __volatile__( \
"1: lw %1, (%3) \n" \
Expand All @@ -281,9 +284,10 @@ do { \
" " __UA_ADDR " 1b, 4b \n" \
" " __UA_ADDR " 2b, 4b \n" \
" .previous \n" \
: "=r" (__gu_err), "=&r" (__gu_tmp) \
: "=r" (__gu_err), "=&r" (__gu_tmp.l) \
: "0" (0), "r" (addr), "i" (-EFAULT)); \
(val) = (__typeof__(*(addr))) __gu_tmp; \
\
(val) = __gu_tmp.t; \
}

/*
Expand Down

0 comments on commit cb66fb3

Please sign in to comment.