diff options
author | Marc Kleine-Budde <[email protected]> | 2024-09-08 17:00:00 +0200 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2024-09-09 08:31:02 +0200 |
commit | 9c100bc3ec13914f9911a937ec5b38182a5c3d64 (patch) | |
tree | 8131948af80ae2d07a1eb59ac9df53b01ed42bc8 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 9a0e4c18cdec39b1d724703180e29156d86bb94b (diff) |
can: rockchip_canfd: rkcanfd_timestamp_init(): fix 64 bit division on 32 bit platforms
On some 32-bit platforms (at least on parisc), the compiler generates
a call to __divdi3() from the u32 by 3 division in
rkcanfd_timestamp_init(), which results in the following linker
error:
| ERROR: modpost: "__divdi3" [drivers/net/can/rockchip/rockchip_canfd.ko] undefined!
As this code doesn't run in the hot path, a 64 bit by 32 bit division
is OK, even on 32 bit platforms. Use an explicit call to div_u64() to
fix linking.
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Link: https://patch.msgid.link/20240909-can-rockchip_canfd-fix-64-bit-division-v1-1-2748d9422b00@pengutronix.de
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions