| To: | rsandifo@redhat.com |
|---|---|
| Subject: | Re: [PATCH] I/O helpers rework |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Fri, 14 Jan 2005 10:52:27 +0900 (JST) |
| Cc: | macro@mips.com, ralf@linux-mips.org, linux-mips@linux-mips.org, macro@linux-mips.org |
| In-reply-to: | <87k6qh2e6j.fsf@redhat.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <874qhltcyv.fsf@redhat.com> <Pine.LNX.4.61.0501131824350.21179@perivale.mips.com> <87k6qh2e6j.fsf@redhat.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
>>>>> On Thu, 13 Jan 2005 21:48:36 +0000, Richard Sandiford >>>>> <rsandifo@redhat.com> said: rsandifo> You can't dereference it, obviously, just like you can't rsandifo> deference a normal "void *". But you can assign it to any rsandifo> "volatile T *" without an explicit cast. I assumed that's rsandifo> what was happening in this case? Assigning "void *" to "volatile T *" is not a problem. Compiler warns if you assigned "volatile T *" to "void *". The warnings I mentioned before are: /usr/src/linux/drivers/scsi/aic7xxx/aic7xxx_osm.h: In function `ahc_inb': /usr/src/linux/drivers/scsi/aic7xxx/aic7xxx_osm.h:589: warning: passing arg 1 of `readb' discards qualifiers from pointer target type --- Atsushi Nemoto |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] I/O helpers rework, Manish Lachwani |
|---|---|
| Next by Date: | compressed kernel image for mips, Mudeem Iqbal |
| Previous by Thread: | Re: [PATCH] I/O helpers rework, Richard Sandiford |
| Next by Thread: | Re: [PATCH] I/O helpers rework, Richard Sandiford |
| Indexes: | [Date] [Thread] [Top] [All Lists] |