[MTD] Fix do_div() type warning in mtdconcat

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Jul 23 08:59:01 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0bf9733d0d65ebb413d62204ad8e328e0a0b9407
Commit:     0bf9733d0d65ebb413d62204ad8e328e0a0b9407
Parent:     e733450b675dfc07940c21b4832207c79059246f
Author:     David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Mon Jul 23 13:07:06 2007 +0100
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Mon Jul 23 13:07:06 2007 +0100

    [MTD] Fix do_div() type warning in mtdconcat
    
    It expects a uint64_t; give it one.
    
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/mtdconcat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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 @@ 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;
 	}



More information about the linux-mtd-cvs mailing list