Re: [PATCH] drm/bridge: lt8713sx: avoid 64-bit division

From: Dmitry Baryshkov

Date: Tue Mar 24 2026 - 22:22:06 EST


On Mon, Mar 16, 2026 at 10:56:32PM +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> On 32-bit kernels, 64-bit integers cannot be passed to the division operator:
>
> ld.lld-22: error: undefined symbol: __aeabi_uldivmod
> >>> referenced by lontium-lt8713sx.c
> >>> drivers/gpu/drm/bridge/lontium-lt8713sx.o:(lt8713sx_firmware_store) in archive vmlinux.a
>
> Since this is a constant number used to divide a size_t, just change the type
> to that as well.

And if the firmware size doesn't fit 32bits, we are in trouble anyway.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>


>
> Fixes: 4037c6adc1f9 ("drm/bridge: add support for lontium lt8713sx bridge driver")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
> drivers/gpu/drm/bridge/lontium-lt8713sx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>

--
With best wishes
Dmitry