On 09.09.2024 09:24:25, Nathan Chancellor wrote: > When building with clang for a 32-bit target, such as arm, a libcall is > generated when dividing the result of clocksource_cyc2ns(), which > returns a signed 64-bit integer: > > ERROR: modpost: "__aeabi_ldivmod" [drivers/net/can/rockchip/rockchip_canfd.ko] undefined! > > Use div_s64() to avoid generating the libcall. > > Fixes: 4e1a18bab124 ("can: rockchip_canfd: add hardware timestamping support") > Signed-off-by: Nathan Chancellor <nathan@xxxxxxxxxx> A similar patch by me is mainline: https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=9c100bc3ec13914f9911a937ec5b38182a5c3d64 regards, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung Nürnberg | Phone: +49-5121-206917-129 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
Attachment:
signature.asc
Description: PGP signature