lkml.org 
[lkml]   [2014]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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

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


\
 
 \ /
  Last update: 2014-03-22 22:21    [W:0.994 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site