| To: | Borislav Petkov <petkov@xxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h |
| From: | viro@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| Date: | Mon, 11 Oct 2004 14:33:02 +0100 |
| Cc: | 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 |
| In-reply-to: | <200410111518.39001.petkov@uni-muenster.de> |
| References: | <Pine.LNX.4.61.0410110702590.7899@linaeum.absolutedigital.net> <1a50bd3704101105046e66538c@mail.gmail.com> <20041011123137.GB28100@zax> <200410111518.39001.petkov@uni-muenster.de> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
On Mon, Oct 11, 2004 at 03:18:38PM +0200, Borislav Petkov wrote:
> that in a great detail. As a result, the right thing to do here is, I think,
> to declare all addrs void __iomem*.
> Which leaves a question: while compiling the following code fragment:
>
> <sound/pci/ymfpci/ymfpci_main.c>
> static inline u8 snd_ymfpci_readb(ymfpci_t *chip, u32 offset)
> {
> return readb(chip->reg_area_virt + offset);
> }
>
> gcc complains as so:
>
> sound/pci/ymfpci/ymfpci_main.c: In function `snd_ymfpci_readb':
> sound/pci/ymfpci/ymfpci_main.c:57: warning: passing arg 1 of `readb' makes
> pointer from integer without a cast
>
> Do we have to cast here or use the new interface?
Make ->reg_area_virt void __iomem *. *However*, ALSA folks said that they
have already done iomem annotations in their tree, so that's an area best
left alone until they merge.
|
| Previous by Date: | Re: via-velocity heads up (was (Re: Linux 2.6.9-rc4 - pls test (and no more patches)), Daniel Andersen |
|---|---|
| Next by Date: | Re: [PATCH 2.6] ip_nat_ftp - manip at the right place, Harald Welte |
| Previous by Thread: | Re: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h, Cal Peake |
| Next by Thread: | Re: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h, Cal Peake |
| Indexes: | [Date] [Thread] [Top] [All Lists] |