From: akpm@linux-foundation.org Date: Thu, 11 Oct 2007 07:02:06 +0000 (-0700) Subject: [MTD] [NAND] Fix compiler warning in Alauda driver X-Git-Tag: v2.6.24-rc1~1364^2~4 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f96880d1e859e3937eb691da8293700b8eec17b3;p=linux-2.6 [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 Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/nand/alauda.c b/drivers/mtd/nand/alauda.c index 2c29854b42..257937cd99 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,