Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268922AbUJKNdI (ORCPT ); Mon, 11 Oct 2004 09:33:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268947AbUJKNdH (ORCPT ); Mon, 11 Oct 2004 09:33:07 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:27019 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S268922AbUJKNdD (ORCPT ); Mon, 11 Oct 2004 09:33:03 -0400 Date: Mon, 11 Oct 2004 14:33:02 +0100 From: viro@parcelfarce.linux.theplanet.co.uk To: Borislav Petkov Cc: David Gibson , Ricky lloyd , Jan Dittmer , Cal Peake , Kernel Mailing List , NetDev Mailing List , proski@gnu.org Subject: Re: [PATCH] Fix readw/writew warnings in drivers/net/wireless/hermes.h Message-ID: <20041011133302.GV23987@parcelfarce.linux.theplanet.co.uk> References: <1a50bd3704101105046e66538c@mail.gmail.com> <20041011123137.GB28100@zax> <200410111518.39001.petkov@uni-muenster.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200410111518.39001.petkov@uni-muenster.de> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1110 Lines: 25 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: > > > 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/