* [PATCH] dgap: fix sparse warnings
@ 2014-05-14 14:41 Jinqiang Zeng
2014-05-14 14:53 ` Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: Jinqiang Zeng @ 2014-05-14 14:41 UTC (permalink / raw)
To: Lidza Louina, Greg Kroah-Hartman
Cc: driverdev-devel, devel, linux-kernel, Jinqiang Zeng
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 <jinqiangzeng@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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-14 14:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14 14:41 [PATCH] dgap: fix sparse warnings Jinqiang Zeng
2014-05-14 14:53 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox