소스 검색

[MTD] Fix do_div() type warning in mtdconcat

It expects a uint64_t; give it one.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Woodhouse 18 년 전
부모
커밋
0bf9733d0d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/mtd/mtdconcat.c

+ 1 - 1
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;
 	}