[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1400078488-22391-1-git-send-email-jinqiangzeng@gmail.com>
Date: Wed, 14 May 2014 22:41:28 +0800
From: Jinqiang Zeng <jinqiangzeng@...il.com>
To: Lidza Louina <lidza.louina@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: driverdev-devel@...uxdriverproject.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org,
Jinqiang Zeng <jinqiangzeng@...il.com>
Subject: [PATCH] dgap: fix sparse warnings
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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists