commit | 7274b7638a3ed03f64faff185253b2bccf557877 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Mon Feb 25 19:42:48 2019 +0100 |
committer | Tom Rini <trini@konsulko.com> | Thu Feb 28 14:21:46 2019 -0500 |
tree | 75fc1f51d754e56efd315d66674c2b063cb60050 | |
parent | a319229fdaced1aa74f8d7a0ffa1194f352a5a38 [diff] |
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>