[PATCH] irqchip/tegra: fix fix sparse warnings on __iomem
Jason Cooper
jason at lakedaemon.net
Sun Jun 12 17:54:01 PDT 2016
Hi Ben,
On Tue, Jun 07, 2016 at 01:24:52PM +0100, Ben Dooks wrote:
> Fix the following warnings from sparse due to casting to/from __iomem
> annotated variables:
>
> drivers/irqchip/irq-tegra.c:93:31: warning: incorrect type in initializer (different address spaces)
> drivers/irqchip/irq-tegra.c:93:31: expected void [noderef] <asn:2>*base
> drivers/irqchip/irq-tegra.c:93:31: got void *chip_data
> drivers/irqchip/irq-tegra.c:93:31: warning: incorrect type in initializer (different address spaces)
> drivers/irqchip/irq-tegra.c:93:31: expected void [noderef] <asn:2>*base
> drivers/irqchip/irq-tegra.c:93:31: got void *chip_data
> drivers/irqchip/irq-tegra.c:93:31: warning: incorrect type in initializer (different address spaces)
> drivers/irqchip/irq-tegra.c:93:31: expected void [noderef] <asn:2>*base
> drivers/irqchip/irq-tegra.c:93:31: got void *chip_data
> drivers/irqchip/irq-tegra.c:93:31: warning: incorrect type in initializer (different address spaces)
> drivers/irqchip/irq-tegra.c:93:31: expected void [noderef] <asn:2>*base
> drivers/irqchip/irq-tegra.c:93:31: got void *chip_data
> drivers/irqchip/irq-tegra.c:269:57: warning: incorrect type in argument 5 (different address spaces)
> drivers/irqchip/irq-tegra.c:269:57: expected void *chip_data
> drivers/irqchip/irq-tegra.c:269:57: got void [noderef] <asn:2>*<noident>
>
> Signed-off-by: Ben Dooks <ben.dooks at codethink.co.uk>
> ---
> Cc: Thomas Gleixner <tglx at linutronix.de>
> Cc: Jason Cooper <jason at lakedaemon.net>
> Cc: Marc Zyngier <marc.zyngier at arm.com>
> Cc: linux-kernel at vger.kernel.org
> Cc: linux-arm-kernel at lists.infradead.org
> Cc: Stephen Warren <swarren at wwwdotorg.org>
> Cc: Thierry Reding <thierry.reding at gmail.com>
> Cc: Alexandre Courbot <gnurou at gmail.com>
> Cc: linux-tegra at vger.kernel.org
> ---
> drivers/irqchip/irq-tegra.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied to irqchip/misc with Thierry's Ack.
thx,
Jason.
More information about the linux-arm-kernel
mailing list