| To: | "Maciej W. Rozycki" <macro@mips.com> |
|---|---|
| Subject: | Re: [PATCH] I/O helpers rework |
| From: | Richard Sandiford <rsandifo@redhat.com> |
| Date: | Thu, 13 Jan 2005 21:48:36 +0000 |
| Cc: | Atsushi Nemoto <anemo@mba.ocn.ne.jp>, ralf@linux-mips.org, linux-mips@linux-mips.org, macro@linux-mips.org |
| In-reply-to: | <Pine.LNX.4.61.0501131824350.21179@perivale.mips.com> (Maciej W. Rozycki's message of "Thu, 13 Jan 2005 18:25:57 +0000 (GMT)") |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <Pine.LNX.4.61.0412151936460.14855@perivale.mips.com> <20050107.004521.74752947.anemo@mba.ocn.ne.jp> <Pine.LNX.4.61.0501101503020.18023@perivale.mips.com> <20050111.022138.25909508.anemo@mba.ocn.ne.jp> <Pine.LNX.4.61.0501101750420.18023@perivale.mips.com> <874qhltcyv.fsf@redhat.com> <Pine.LNX.4.61.0501131824350.21179@perivale.mips.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
"Maciej W. Rozycki" <macro@mips.com> writes: > On Thu, 13 Jan 2005, Richard Sandiford wrote: > >> >> Well, maybe the 'volatile' have no sense, but some archs (including >> >> i386, of course :-)) and some drivers use it. Adding the 'volatile' >> >> will remove some compiler warnings. >> > >> > As will removing "volatile" from broken ports. >> >> There's nothing wrong with "volatile void *". > > So what's the volatile value you can get by dereferencing such a pointer? You can't dereference it, obviously, just like you can't deference a normal "void *". But you can assign it to any "volatile T *" without an explicit cast. I assumed that's what was happening in this case? Richard |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: O2 and 128Mb, Ilya A. Volynets-Evenbakh |
|---|---|
| Next by Date: | Re: [PATCH] I/O helpers rework, Manish Lachwani |
| Previous by Thread: | Re: [PATCH] I/O helpers rework, Maciej W. Rozycki |
| Next by Thread: | Re: [PATCH] I/O helpers rework, Atsushi Nemoto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |