| To: | ralf@linux-mips.org |
|---|---|
| Subject: | Re: Fixes for uaccess.h with gcc >= 4.0.1 |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Sat, 11 Feb 2006 22:44:20 +0900 (JST) |
| Cc: | tbm@cyrius.com, linux-mips@linux-mips.org, anderson@netsweng.com, ddaney@avtrex.com, richard@codesourcery.com |
| In-reply-to: | <20060210013440.GA5436@linux-mips.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20060123150507.GA18665@linux-mips.org> <87wtg6c43s.fsf@talisman.home> <20060210013440.GA5436@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
>>>>> On Fri, 10 Feb 2006 01:34:40 +0000, Ralf Baechle <ralf@linux-mips.org>
>>>>> said:
ralf> Thanks, makes perfect sense. I tried various other obscure
ralf> things and your patch was holding up, so I just applied it.
Please add this cast to fix compiler/sparse warnings?
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
diff --git a/include/asm-mips/uaccess.h b/include/asm-mips/uaccess.h
index 7a553e9..252caba 100644
--- a/include/asm-mips/uaccess.h
+++ b/include/asm-mips/uaccess.h
@@ -284,7 +284,7 @@ do {
\
" .previous \n" \
: "=r" (__gu_err), "=&r" (__gu_tmp) \
: "0" (0), "r" (addr), "i" (-EFAULT)); \
- (val) = __gu_tmp; \
+ (val) = (__typeof__(val)) __gu_tmp; \
}
/*
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Tracking down exception in sched.c, Mark E Mason |
|---|---|
| Next by Date: | [PATCH 2.6.X] Early console for Cobalt, Peter Horton |
| Previous by Thread: | Re: Fixes for uaccess.h with gcc >= 4.0.1, Ralf Baechle |
| Next by Thread: | Re: Fixes for uaccess.h with gcc >= 4.0.1, Atsushi Nemoto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |