Re: [PATCH v3 1/3] clk: k210: remove an implicit 64-bit division

From: Palmer Dabbelt
Date: Mon Mar 06 2023 - 17:48:45 EST


On Mon, 06 Mar 2023 14:41:11 PST (-0800), sboyd@xxxxxxxxxx wrote:
Quoting Jesse Taube (2023-02-28 16:26:55)
From: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>

The K210 clock driver depends on SOC_CANAAN, which is only selectable
when !MMU on RISC-V. !MMU is not possible on 32-bit yet, but patches
have been sent for its enabling. The kernel test robot reported this
implicit 64-bit division there.

Replace the implicit division with an explicit one.

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Link: https://lore.kernel.org/linux-riscv/202301201538.zNlqgE4L-lkp@xxxxxxxxx/
Signed-off-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
Signed-off-by: Jesse Taube <Mr.Bossman075@xxxxxxxxx>
---

Seems better to merge this one-liner earlier to unblock 32-bit.

Applied to clk-fixes

Thanks!