[MTD] Fix do_div() type warning in mtdconcat
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 23 Jul 2007 12:07:06 +0000 (13:07 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 23 Jul 2007 12:07:06 +0000 (13:07 +0100)
It expects a uint64_t; give it one.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtdconcat.c

index 41844ea..96be7ef 100644 (file)
@@ -178,7 +178,7 @@ concat_writev(struct mtd_info *mtd, const struct kvec *vecs,
 
        /* Check alignment */
        if (mtd->writesize > 1) {
-               loff_t __to = to;
+               uint64_t __to = to;
                if (do_div(__to, mtd->writesize) || (total_len % mtd->writesize))
                        return -EINVAL;
        }