irqchip/gic-v3-its: Fix misplaced __iomem annotations

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Mar 19 02:59:05 PDT 2018


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=50c330973c0c9f1e300b07bbab78d306dcc6e612
Commit:     50c330973c0c9f1e300b07bbab78d306dcc6e612
Parent:     0b24a0bbe2147815d982d9335c41bb10c04f40bc
Author:     Robin Murphy <robin.murphy at arm.com>
AuthorDate: Fri Feb 16 16:57:56 2018 +0000
Committer:  Marc Zyngier <marc.zyngier at arm.com>
CommitDate: Fri Feb 16 17:03:20 2018 +0000

    irqchip/gic-v3-its: Fix misplaced __iomem annotations
    
    Save 26 lines worth of Sparse complaints by fixing up this minor
    mishap. The pointee lies in the __iomem space; the pointer does not.
    
    Signed-off-by: Robin Murphy <robin.murphy at arm.com>
    Signed-off-by: Marc Zyngier <marc.zyngier at arm.com>
---
 drivers/irqchip/irq-gic-v3-its.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c
index 1d3056f53747..94b7d74d519f 100644
--- a/drivers/irqchip/irq-gic-v3-its.c
+++ b/drivers/irqchip/irq-gic-v3-its.c
@@ -2495,7 +2495,7 @@ static int its_vpe_set_affinity(struct irq_data *d,
 
 static void its_vpe_schedule(struct its_vpe *vpe)
 {
-	void * __iomem vlpi_base = gic_data_rdist_vlpi_base();
+	void __iomem *vlpi_base = gic_data_rdist_vlpi_base();
 	u64 val;
 
 	/* Schedule the VPE */
@@ -2527,7 +2527,7 @@ static void its_vpe_schedule(struct its_vpe *vpe)
 
 static void its_vpe_deschedule(struct its_vpe *vpe)
 {
-	void * __iomem vlpi_base = gic_data_rdist_vlpi_base();
+	void __iomem *vlpi_base = gic_data_rdist_vlpi_base();
 	u32 count = 1000000;	/* 1s! */
 	bool clean;
 	u64 val;



More information about the linux-mtd-cvs mailing list