Skip to content
Commit 7274b763 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Tom Rini
Browse files

fs: fat: fix link error when building with DEBUG=1



When compiling with DEBUG=1 an error
fs/fat/fat_write.c:831: undefined reference to `__aeabi_ldivmod'
occurred.

We should use do_div() instead of the modulus operator.

filesize and cur_pos cannot be negative. So let's use u64 to avoid
warnings.

Fixes: cb8af8af ("fs: fat: support write with non-zero offset")
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent a319229f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment