* [PATCH] drivers:staging:crystalhd Fixes sparse warning about incorrect type
@ 2014-03-22 20:59 John de la Garza
0 siblings, 0 replies; only message in thread
From: John de la Garza @ 2014-03-22 20:59 UTC (permalink / raw)
To: linux-kernel; +Cc: standby24x7, gregkh
Fixes these sparse warnings:
drivers/staging/crystalhd/crystalhd_lnx.c:507:30: warning: incorrect type in argument 1 (different address spaces)
drivers/staging/crystalhd/crystalhd_lnx.c:507:30: expected void volatile [noderef] <asn:2>*addr
drivers/staging/crystalhd/crystalhd_lnx.c:507:30: got void *addr
drivers/staging/crystalhd/crystalhd_lnx.c:510:30: warning: incorrect type in argument 1 (different address spaces)
drivers/staging/crystalhd/crystalhd_lnx.c:510:30: expected void volatile [noderef] <asn:2>*addr
drivers/staging/crystalhd/crystalhd_lnx.c:510:30: got void *i2o_addr
Signed-off-by: John de la Garza <john@jjdev.com>
---
drivers/staging/crystalhd/crystalhd_lnx.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/crystalhd/crystalhd_lnx.h b/drivers/staging/crystalhd/crystalhd_lnx.h
index 816e1cd..49e1ef3 100644
--- a/drivers/staging/crystalhd/crystalhd_lnx.h
+++ b/drivers/staging/crystalhd/crystalhd_lnx.h
@@ -58,11 +58,11 @@ struct crystalhd_adp {
unsigned long pci_mem_start;
uint32_t pci_mem_len;
- void *addr;
+ void __iomem *addr;
unsigned long pci_i2o_start;
uint32_t pci_i2o_len;
- void *i2o_addr;
+ void __iomem *i2o_addr;
unsigned int drv_data;
unsigned int dmabits; /* 32 | 64 */
--
1.9.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-22 20:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-22 20:59 [PATCH] drivers:staging:crystalhd Fixes sparse warning about incorrect type John de la Garza
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome