commit | 0bf9733d0d65ebb413d62204ad8e328e0a0b9407 | [log] [tgz] |
---|---|---|
author | David Woodhouse <dwmw2@infradead.org> | Mon Jul 23 13:07:06 2007 +0100 |
committer | David Woodhouse <dwmw2@infradead.org> | Mon Jul 23 13:07:06 2007 +0100 |
tree | 175e8a38476202e0e09be227e10a27aef5f266c2 | |
parent | e733450b675dfc07940c21b4832207c79059246f [diff] |
[MTD] Fix do_div() type warning in mtdconcat It expects a uint64_t; give it one. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
diff --git a/drivers/mtd/mtdconcat.c b/drivers/mtd/mtdconcat.c index 41844ea..96be7ef 100644 --- a/drivers/mtd/mtdconcat.c +++ b/drivers/mtd/mtdconcat.c
@@ -178,7 +178,7 @@ /* 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; }