[lkml]   [2004]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h
    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.
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:06    [W:0.019 / U:11.576 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site