[MTD] [NAND] Fix compiler warning in Alauda driver
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sat Oct 13 09:59:01 EDT 2007
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=f96880d1e859e3937eb691da8293700b8eec17b3
Commit: f96880d1e859e3937eb691da8293700b8eec17b3
Parent: 4fc8a6078660be781d6ddf4daddfd9d817d2a455
Author: akpm at linux-foundation.org <akpm at linux-foundation.org>
AuthorDate: Thu Oct 11 00:02:06 2007 -0700
Committer: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sat Oct 13 14:33:27 2007 +0100
[MTD] [NAND] Fix compiler warning in Alauda driver
drivers/mtd/nand/alauda.c: In function 'alauda_bounce_read':
drivers/mtd/nand/alauda.c:412: warning: comparison of distinct pointer types lacks a cast
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
drivers/mtd/nand/alauda.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/alauda.c b/drivers/mtd/nand/alauda.c
index 2c29854..257937c 100644
--- a/drivers/mtd/nand/alauda.c
+++ b/drivers/mtd/nand/alauda.c
@@ -408,7 +408,7 @@ static int alauda_bounce_read(struct mtd_info *mtd, loff_t from, size_t len,
*retlen = len;
while (len) {
u8 oob[16];
- u32 byte = from & al->bytemask;
+ size_t byte = from & al->bytemask;
size_t cplen = min(len, mtd->writesize - byte);
err = alauda_read_page(mtd, from, bounce_buf, oob,
More information about the linux-mtd-cvs
mailing list