[PATCH V2 6/8] [SCSI] 3w-sas: add missing __iomem annotation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux