mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
fs/squashfs: use lldiv function for math
When compling for x86: u-boot/fs/squashfs/sqfs.c:90: undefined reference to `__udivmoddi4' Signed-off-by: Kasper Revsbech <kasper.revsbech.ext@siemensgamesa.com> Tested-by: Sean Nyekjaer <sean@geanix.com>
This commit is contained in:
parent
486aef08de
commit
aeea67f9a0
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ static int sqfs_calc_n_blks(__le64 start, __le64 end, u64 *offset)
|
|||
u64 start_, table_size;
|
||||
|
||||
table_size = le64_to_cpu(end) - le64_to_cpu(start);
|
||||
start_ = le64_to_cpu(start) / ctxt.cur_dev->blksz;
|
||||
start_ = lldiv(le64_to_cpu(start), ctxt.cur_dev->blksz);
|
||||
*offset = le64_to_cpu(start) - (start_ * ctxt.cur_dev->blksz);
|
||||
|
||||
return DIV_ROUND_UP(table_size + *offset, ctxt.cur_dev->blksz);
|
||||
|
|
Loading…
Reference in a new issue