[PATCH v2 09/10] OMAP2/3: Convert write/read functions to raw read/write
Russell King - ARM Linux
linux at arm.linux.org.uk
Thu Oct 7 14:56:30 EDT 2010
On Thu, Oct 07, 2010 at 07:17:08AM -0500, Menon, Nishanth wrote:
> > -----Original Message-----
> > From: linux-omap-owner at vger.kernel.org [mailto:linux-omap-
> > owner at vger.kernel.org] On Behalf Of G, Manjunath Kondaiah
> > Sent: Tuesday, September 21, 2010 5:01 AM
> > To: linux-omap at vger.kernel.org
> > Cc: linux-arm-kernel at lists.infradead.org; linux-mtd at lists.infradead.org
> > Subject: [PATCH v2 09/10] OMAP2/3: Convert write/read functions to raw
> > read/write
> > Following sparse warnings exists due to use of writel/w and readl/w
> > functions.
> > This patch fixes the sparse warnings by converting readl/w functions usage
> > into
> > __raw_readl/__raw_readw functions.
> Apologies on bringing up an old topic here -> Is'nt it better to fix
> readl/w or writel/w than replacing it with __raw_readl/w etc?
No. If you're getting sparse warnings its because _you_ are using
They take a void __iomem pointer, not a u32, unsigned long, int, or
even a void pointer.
More information about the linux-arm-kernel