提交 0bf9733d 编写于 作者: D David Woodhouse

[MTD] Fix do_div() type warning in mtdconcat

It expects a uint64_t; give it one.
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 e733450b
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册