* [PATCH V2 6/8] [SCSI] 3w-sas: add missing __iomem annotation
@ 2013-08-08 1:16 Jingoo Han
0 siblings, 0 replies; only message in thread
From: Jingoo Han @ 2013-08-08 1:16 UTC (permalink / raw)
To: 'James Bottomley'
Cc: 'Adam Radford', 'James Bottomley', linux-scsi,
Jingoo Han
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@samsung.com>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-08 1:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08 1:16 [PATCH V2 6/8] [SCSI] 3w-sas: add missing __iomem annotation Jingoo Han
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.