diff options
author | Mikhail Zhilkin <csharper2005@gmail.com> | 2022-12-08 23:28:29 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-01-02 14:08:51 +0300 |
commit | 105c14b84d93168431abba5d55e6c26fa4b65abb (patch) | |
tree | 0a39d9a9515e2bc3578f553614fd5defbf1b02cb /drivers/sh | |
parent | 7adde5ac25fa50dbb1fb237042316685cafe976c (diff) | |
download | linux-105c14b84d93168431abba5d55e6c26fa4b65abb.tar.xz |
mtd: parsers: scpart: fix __udivdi3 undefined on mips
This fixes the following compile error on mips architecture with clang
version 16.0.0 reported by the 0-DAY CI Kernel Test Service:
ld.lld: error: undefined symbol: __udivdi3
referenced by scpart.c
mtd/parsers/scpart.o:(scpart_parse) in archive drivers/built-in.a
As a workaround this makes 'offs' a 32-bit type. This is enough, because
the mtd containing partition table practically does not exceed 1 MB. We
can revert this when the [Link] has been resolved.
Link: https://github.com/ClangBuiltLinux/linux/issues/1635
Fixes: 9b78ef0c7997 ("mtd: parsers: add support for Sercomm partitions")
Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mikhail Zhilkin <csharper2005@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/805fe58e-690f-6a3f-5ebf-2f6f6e6e4599@gmail.com
Diffstat (limited to 'drivers/sh')
0 files changed, 0 insertions, 0 deletions