diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-02-25 21:42:48 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-02-28 22:21:46 +0300 |
commit | 7274b7638a3ed03f64faff185253b2bccf557877 (patch) | |
tree | 75fc1f51d754e56efd315d66674c2b063cb60050 /configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig | |
parent | a319229fdaced1aa74f8d7a0ffa1194f352a5a38 (diff) | |
download | u-boot-7274b7638a3ed03f64faff185253b2bccf557877.tar.xz |
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: cb8af8af5ba0 ("fs: fat: support write with non-zero offset")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig')
0 files changed, 0 insertions, 0 deletions