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>* Signed-off-by: Jingoo Han <jg1.han@xxxxxxxxxxx> --- No changes since v1: drivers/scsi/3w-sas.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/3w-sas.c b/drivers/scsi/3w-sas.c index c845bdb..0d9c722 100644 --- a/drivers/scsi/3w-sas.c +++ b/drivers/scsi/3w-sas.c @@ -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; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html