From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Thu, 7 Oct 2010 19:56:30 +0100 Subject: [PATCH v2 09/10] OMAP2/3: Convert write/read functions to raw read/write In-Reply-To: <7A436F7769CA33409C6B44B358BFFF0C014F74831E@dlee02.ent.ti.com> References: <1285063280-4057-1-git-send-email-manjugk@ti.com> <1285063280-4057-10-git-send-email-manjugk@ti.com> <7A436F7769CA33409C6B44B358BFFF0C014F74831E@dlee02.ent.ti.com> Message-ID: <20101007185630.GA26435@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 readl/writel wrongly. They take a void __iomem pointer, not a u32, unsigned long, int, or even a void pointer.