Skip to contentSkip to conversation

drivers:staging:crystalhd Fixes sparse warning about incorrect type

PATCH New John de la Garza 1 participant 1 message Mar 22, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers:staging:crystalhd Fixes sparse warning about incorrect type

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

---
 drivers/staging/crystalhd/crystalhd_lnx.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/crystalhd/crystalhd_lnx.h +2 -2
index 816e1cd..49e1ef3 100644
@@ -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 */
Signature · 1 line
1.9.0