summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKasper Revsbech <kasper.revsbech.ext@siemensgamesa.com>2022-12-01 16:30:32 +0100
committerTom Rini <trini@konsulko.com>2022-12-08 09:29:02 -0500
commitaeea67f9a033ab6f3adca7b30bbd02579f72512f (patch)
tree86ec5391a59c7048d88c3daeb41333046f432f41 /fs
parent486aef08de091ca35386f32fe961a201c3cfa9d4 (diff)
downloadu-boot-aeea67f9a033ab6f3adca7b30bbd02579f72512f.tar.gz
u-boot-aeea67f9a033ab6f3adca7b30bbd02579f72512f.tar.bz2
u-boot-aeea67f9a033ab6f3adca7b30bbd02579f72512f.zip
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>
Diffstat (limited to 'fs')
-rw-r--r--fs/squashfs/sqfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c
index 74ca70c3ff..4226621923 100644
--- a/fs/squashfs/sqfs.c
+++ b/fs/squashfs/sqfs.c
@@ -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);