From: Andrew Morton 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 Cc: David Woodhouse Signed-off-by: Andrew Morton --- drivers/mtd/nand/alauda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/mtd/nand/alauda.c~mtd-alaudac-warning-fix drivers/mtd/nand/alauda.c --- a/drivers/mtd/nand/alauda.c~mtd-alaudac-warning-fix +++ a/drivers/mtd/nand/alauda.c @@ -408,7 +408,7 @@ static int alauda_bounce_read(struct mtd *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, _