aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2025-05-20 15:25:45 +0000
committerAndi Shyti <[email protected]>2025-05-23 08:02:27 +0000
commit2b2805404c926b8dcd5c5c13d240722da714906e (patch)
tree98f3444daeb2e92d0be07e1794b6cd8c0cd66d8f /drivers/fpga/tests/fpga-mgr-test.c
parenti2c: viai2c-wmt: Replace dev_err() with dev_err_probe() in probe function (diff)
downloadkernel-2b2805404c926b8dcd5c5c13d240722da714906e.tar.gz
kernel-2b2805404c926b8dcd5c5c13d240722da714906e.zip
i2c: mlxbf: avoid 64-bit division
The 64-bit division in mlxbf_i2c_get_ticks() causes link failures when compile-testing on 32-bit machines: ERROR: modpost: "__udivdi3" [drivers/i2c/busses/i2c-mlxbf.ko] undefined! Change this to a div_u64(), which should replace the constant division with a a multiply/shift combination in the mlxbf_i2c_get_ticks(). The frequency calculation functions require a slow library call but should be used much rarer. Fixes: 053859002c20 ("i2c: mlxbf: Allow build with COMPILE_TEST") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andi Shyti <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions