Skip to contentSkip to conversation

3w-sas: add missing __iomem annotation

PATCH In review Jingoo Han 1 participant 1 message Aug 8, 2013

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH v2 6/8 3w-sas: add missing __iomem annotation

Added missing __iomem annotation in order to fix the following sparse warnings:

drivers/scsi/3w-sas.c:1291:21: warning: incorrect type in argument 1 (different address spaces)
drivers/scsi/3w-sas.c:1291:21: expected void const volatile [noderef] <asn:2>*addr
drivers/scsi/3w-sas.c:1291:21: got void *reg
drivers/scsi/3w-sas.c:1295:29: warning: incorrect type in argument 1 (different address spaces)
drivers/scsi/3w-sas.c:1295:29: expected void const volatile [noderef] <asn:2>*addr
drivers/scsi/3w-sas.c:1295:29: got void *reg
drivers/scsi/3w-sas.c:1323:55: warning: incorrect type in argument 2 (different address spaces)
drivers/scsi/3w-sas.c:1323:55: expected void *reg
drivers/scsi/3w-sas.c:1323:55: got unsigned char [noderef] <asn:2>*
drivers/scsi/3w-sas.c:1328:55: warning: incorrect type in argument 2 (different address spaces)
drivers/scsi/3w-sas.c:1328:55: expected void *reg
drivers/scsi/3w-sas.c:1328:55: got unsigned char [noderef] <asn:2>*

---
No changes since v1:

 drivers/scsi/3w-sas.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/3w-sas.c +2 -1
index c845bdb..0d9c722 100644
@@ -1282,7 +1282,8 @@ twl_interrupt_bail:
 } /* End twl_interrupt() */
 
 /* This function will poll for a register change */
-static int twl_poll_register(TW_Device_Extension *tw_dev, void *reg, u32 value, u32 result, int seconds)
+static int twl_poll_register(TW_Device_Extension *tw_dev, void __iomem *reg,
+			     u32 value, u32 result, int seconds)
 {
 	unsigned long before;
 	int retval = 1;
Signature · 1 line
1.7.10.4