[PATCH v2] staging: comedi: jr3_pci: add __iomem tags

Greg Kroah-Hartman gregkh at linuxfoundation.org
Mon Oct 22 18:54:24 UTC 2012


On Tue, Oct 16, 2012 at 06:09:58PM +0100, Ian Abbott wrote:
> On 2012-10-15 19:26, H Hartley Sweeten wrote:
> >On Monday, October 15, 2012 4:20 AM, Ian Abbott wrote:
> >>
> >>Tag pointers to remapped I/O memory with `__iomem` and remove the
> >>`volatile` qualifiers.
> >>
> >>Signed-off-by: Ian Abbott <abbotti at mev.co.uk>
> >
> >I'm still not a fan of the iobase pointer being a struct * and not a void *.
> 
> There are quite a few Linux drivers that use a similar trick though.  Try:
> 
> grep -r --include='*.c' 'struct [A-Za-z0-9_]* __iomem'
> /usr/src/linux/drivers
> 
> (replacing /usr/src/linux/drivers as appropriate).

I don't like it either, but there is precedent for it, so I'll allow it.

thanks,

greg k-h



More information about the devel mailing list