projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e733450
)
[MTD] Fix do_div() type warning in mtdconcat
author
David Woodhouse
<dwmw2@infradead.org>
Mon, 23 Jul 2007 12:07:06 +0000
(13:07 +0100)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/mtdconcat.c
b/drivers/mtd/mtdconcat.c
index 41844ea02462486a3e3b4eedb978debbc6f7eb62..96be7ef62f35f00c75261660a6daf460b3daa184 100644
(file)
--- a/
drivers/mtd/mtdconcat.c
+++ b/
drivers/mtd/mtdconcat.c
@@
-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;
}