kernel: update 3.14 to 3.14.30
[openwrt.git] / target / linux / generic / patches-3.14 / 043-UBI-block-Use-u64-for-the-64-bit-dividend.patch
1 From 9981e14ab2f7c6a4d2bb45e51a6371964919837d Mon Sep 17 00:00:00 2001
2 From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
3 Date: Mon, 3 Mar 2014 13:42:39 -0300
4 Subject: [PATCH] UBI: block: Use 'u64' for the 64-bit dividend
5
6 Fixes the following warning on ARCH=avr32:
7
8   drivers/mtd/ubi/block.c: In function 'ubiblock_read':
9   drivers/mtd/ubi/block.c:207: warning: comparison of distinct pointer types lacks a cast
10
11 Reported-by: kbuild test robot <fengguang.wu@intel.com>
12 Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
13 Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
14 ---
15  drivers/mtd/ubi/block.c | 2 +-
16  1 file changed, 1 insertion(+), 1 deletion(-)
17
18 --- a/drivers/mtd/ubi/block.c
19 +++ b/drivers/mtd/ubi/block.c
20 @@ -201,7 +201,7 @@ static int ubiblock_read(struct ubiblock
21         int ret, leb, offset;
22         int bytes_left = len;
23         int to_read = len;
24 -       loff_t pos = sec << 9;
25 +       u64 pos = sec << 9;
26  
27         /* Get LEB:offset address to read from */
28         offset = do_div(pos, dev->leb_size);