diff options
author | Daniel Thompson <daniel.thompson@linaro.org> | 2017-08-02 16:37:07 +0100 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2017-08-02 16:37:07 +0100 |
commit | bc1bb8610f3c238c42a6b3e5720f9357bcdf1712 (patch) | |
tree | f782c9450d374baa640f672cd4e86833a6861e7b | |
parent | bf35aad998f966fb99c1f7122e427c44a6fc4b8a (diff) |
usb: gadget: fastboot: Eliminate signed 64-bit division
The private libgcc implementation does not support this.
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
-rw-r--r-- | drivers/usb/gadget/fastboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/fastboot.c b/drivers/usb/gadget/fastboot.c index 21aaa0502b..8caa6cac5c 100644 --- a/drivers/usb/gadget/fastboot.c +++ b/drivers/usb/gadget/fastboot.c @@ -460,7 +460,7 @@ static void cmd_flash_nand(const char *arg, void *data, loff_t sz) if (is_power_of_2(nand->writesize)) sz = ROUND(sz, nand->writesize); else - sz = roundup(sz, nand->writesize); + sz = roundup((uint64_t) sz, nand->writesize); size = sz; max_limit = part->offset + part->size; |