fix the sparse warnings
drivers/staging/dgap/dgap.c:689:28: warning: incorrect type in argument 1 
(different address spaces)
drivers/staging/dgap/dgap.c:689:28:    expected void volatile [noderef] 
<asn:2>*addr
drivers/staging/dgap/dgap.c:689:28:    got unsigned char [usertype] *re_map_port
drivers/staging/dgap/dgap.c:695:28: warning: incorrect type in argument 1 
(different address spaces)
drivers/staging/dgap/dgap.c:695:28:    expected void volatile [noderef] 
<asn:2>*addr
drivers/staging/dgap/dgap.c:695:28:    got unsigned char [usertype] 
*re_map_membase


Signed-off-by: Jinqiang Zeng <jinqiangz...@gmail.com>
---
 drivers/staging/dgap/dgap.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/dgap/dgap.h b/drivers/staging/dgap/dgap.h
index 6b8f5f8..bceff7d 100644
--- a/drivers/staging/dgap/dgap.h
+++ b/drivers/staging/dgap/dgap.h
@@ -578,8 +578,8 @@ struct board_t {
        ulong           membase;        /* Start of base memory of the card */
        ulong           membase_end;    /* End of base memory of the card */
 
-       uchar           *re_map_port;   /* Remapped io port of the card */
-       uchar           *re_map_membase;/* Remapped memory of the card */
+       uchar __iomem   *re_map_port;   /* Remapped io port of the card */
+       uchar __iomem   *re_map_membase;/* Remapped memory of the card */
 
        uchar           runwait;        /* # Processes waiting for FEP  */
        uchar           inhibit_poller; /* Tells  the poller to leave us alone 
*/
-- 
1.7.7.6

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to