Re: (subset) [PATCH] leds: sun50i-a100: avoid division-by-zero warning

From: Lee Jones
Date: Wed Dec 13 2023 - 11:16:42 EST


On Tue, 12 Dec 2023 22:45:22 +0100, Arnd Bergmann wrote:
> When CONFIG_COMMON_CLK is disabled, e.g. on an x86 randconfig compile test,
> clang reports a field overflow from propagating the result of a division by
> zero:
>
> drivers/leds/leds-sun50i-a100.c:309:12: error: call to '__compiletime_assert_265' declared with 'error' attribute: FIELD_PREP: value too large for the field
> control = FIELD_PREP(LEDC_T01_TIMING_CTRL_REG_T1H, timing->t1h_ns / cycle_ns) |
>
> [...]

Applied, thanks!

[1/1] leds: sun50i-a100: avoid division-by-zero warning
commit: f969d75a0218da32c40dd4940bd430b0530433cf

--
Lee Jones [李琼斯]