aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel.thompson@linaro.org>2017-08-02 16:37:07 +0100
committerDaniel Thompson <daniel.thompson@linaro.org>2017-08-02 16:37:07 +0100
commitbc1bb8610f3c238c42a6b3e5720f9357bcdf1712 (patch)
treef782c9450d374baa640f672cd4e86833a6861e7b
parentbf35aad998f966fb99c1f7122e427c44a6fc4b8a (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.c2
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;