(subset) [PATCH] leds: sun50i-a100: avoid division-by-zero warning
Lee Jones
lee at kernel.org
Wed Dec 13 08:16:24 PST 2023
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 [李琼斯]
More information about the linux-arm-kernel
mailing list