| To: | Ricky lloyd <ricky.lloyd@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h |
| From: | David Gibson <hermes@xxxxxxxxxxxxxxxxxxxxx> |
| Date: | Mon, 11 Oct 2004 22:31:37 +1000 |
| Cc: | Jan Dittmer <j.dittmer@xxxxxxxxxxx>, Cal Peake <cp@xxxxxxxxxxxxxxxxxxx>, Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, NetDev Mailing List <netdev@xxxxxxxxxxx>, proski@xxxxxxx |
| In-reply-to: | <1a50bd3704101105046e66538c@xxxxxxxxxxxxxx> |
| Mail-followup-to: | David Gibson <hermes@xxxxxxxxxxxxxxxxxxxxx>, Ricky lloyd <ricky.lloyd@xxxxxxxxx>, Jan Dittmer <j.dittmer@xxxxxxxxxxx>, Cal Peake <cp@xxxxxxxxxxxxxxxxxxx>, Kernel Mailing List <linux-kernel@xxxxxxxxxxxxxxx>, NetDev Mailing List <netdev@xxxxxxxxxxx>, proski@xxxxxxx |
| References: | <Pine.LNX.4.61.0410110702590.7899@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <416A7484.1030703@xxxxxxxxxxx> <1a50bd3704101105046e66538c@xxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.6+20040907i |
On Mon, Oct 11, 2004 at 05:34:20PM +0530, Ricky lloyd wrote:
> > Isn't the correct fix to declare iobase as (void __iomem *) ?
> >
>
> Earlier today i had posted a patch which mainly fixes this same
> problem with lotsa scsi
> drivers and tulip drivers. I wondered the same "shouldnt all the addrs
> be declared as
> void __iomem* ??".
The trouble with that is that for some versions of the orinoco card,
the iobase refers to a legacy ISA IO address, not a memory-mapped IO
address (that's the inw()/outw() path in the macro). That needs an
integer, rather than a pointer.
It's not clear to me which way around the cast is less ugly.
--
David Gibson | For every complex problem there is a
david AT gibson.dropbear.id.au | solution which is simple, neat and
| wrong.
http://www.ozlabs.org/people/dgibson
|
| Previous by Date: | Re: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h, Jan Dittmer |
|---|---|
| Next by Date: | Re: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h, David Gibson |
| Previous by Thread: | Re: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h, Ricky lloyd |
| Next by Thread: | Re: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h, Cal Peake |
| Indexes: | [Date] [Thread] [Top] [All Lists] |