mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Marek Belisko <marek.belisko@open-nandra.com>
To: barebox@lists.infradead.org
Cc: Marek Belisko <marek.belisko@open-nandra.com>
Subject: [PATCH 2/8] base:driver: Fix sparse warning.
Date: Thu, 13 Oct 2011 22:23:08 +0200	[thread overview]
Message-ID: <1318537394-8555-2-git-send-email-marek.belisko@open-nandra.com> (raw)
In-Reply-To: <1318537394-8555-1-git-send-email-marek.belisko@open-nandra.com>

warnings:
drivers/base/driver.c:247:7: warning: incorrect type in assignment (different address spaces)
drivers/base/driver.c:247:7:    expected void *<noident>
drivers/base/driver.c:247:7:    got void [noderef] <asn:2>*
drivers/base/driver.c:256:7: warning: incorrect type in assignment (different address spaces)
drivers/base/driver.c:256:7:    expected void *<noident>
drivers/base/driver.c:256:7:    got void [noderef] <asn:2>*

Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
---
 drivers/base/driver.c |    4 ++--
 include/driver.h      |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 0b80103..ddbba6b 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -237,7 +237,7 @@ int dev_protect(struct device_d *dev, size_t count, unsigned long offset, int pr
 	return -EINVAL;
 }
 
-int generic_memmap_ro(struct cdev *cdev, void **map, int flags)
+int generic_memmap_ro(struct cdev *cdev, void __iomem **map, int flags)
 {
 	if (!cdev->dev)
 		return -EINVAL;
@@ -248,7 +248,7 @@ int generic_memmap_ro(struct cdev *cdev, void **map, int flags)
 	return 0;
 }
 
-int generic_memmap_rw(struct cdev *cdev, void **map, int flags)
+int generic_memmap_rw(struct cdev *cdev, void __iomem **map, int flags)
 {
 	if (!cdev->dev)
 		return -EINVAL;
diff --git a/include/driver.h b/include/driver.h
index 80de0c8..39ced2c 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -303,8 +303,8 @@ int dummy_probe(struct device_d *);
  */
 void devices_shutdown(void);
 
-int generic_memmap_ro(struct cdev *dev, void **map, int flags);
-int generic_memmap_rw(struct cdev *dev, void **map, int flags);
+int generic_memmap_ro(struct cdev *dev, void __iomem **map, int flags);
+int generic_memmap_rw(struct cdev *dev, void __iomem **map, int flags);
 
 static inline off_t dev_lseek_default(struct cdev *cdev, off_t ofs)
 {
-- 
1.7.4.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2011-10-13 20:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13 20:23 [PATCH 1/8] block: Sparse fix Marek Belisko
2011-10-13 20:23 ` Marek Belisko [this message]
2011-10-13 20:23 ` [PATCH 3/8] mci:s3c: Fix sparse warning Marek Belisko
2011-10-13 20:23 ` [PATCH 4/8] mci:s3c: Fix shadow name " Marek Belisko
2011-10-13 20:23 ` [PATCH 5/8] mci:s3c: Fix sparse warning for readl/writel arguments Marek Belisko
2011-10-13 20:23 ` [PATCH 6/8] nand: Fix sparse warning Marek Belisko
2011-10-13 20:23 ` [PATCH 7/8] nand_s3c2410: Fix sparse warnings Marek Belisko
2011-10-13 20:23 ` [PATCH 8/8] serial_s3c24x0: " Marek Belisko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1318537394-8555-2-git-send-email-marek.belisko@open-nandra.com \
    --to=marek.belisko@open-nandra.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox