[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <170248418423.1005780.5339514949375553684.b4-ty@kernel.org>
Date:   Wed, 13 Dec 2023 16:16:24 +0000
From:   Lee Jones <lee@...nel.org>
To:     Pavel Machek <pavel@....cz>, Lee Jones <lee@...nel.org>,
        Chen-Yu Tsai <wens@...e.org>,
        Jernej Skrabec <jernej.skrabec@...il.com>,
        Samuel Holland <samuel@...lland.org>,
        Nathan Chancellor <nathan@...nel.org>,
        Guo Ren <guoren@...nel.org>,
        Palmer Dabbelt <palmer@...osinc.com>,
        Arnd Bergmann <arnd@...nel.org>
Cc:     Arnd Bergmann <arnd@...db.de>,
        Nick Desaulniers <ndesaulniers@...gle.com>,
        Bill Wendling <morbo@...gle.com>,
        Justin Stitt <justinstitt@...gle.com>,
        linux-leds@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
        linux-sunxi@...ts.linux.dev, linux-kernel@...r.kernel.org,
        llvm@...ts.linux.dev
Subject: Re: (subset) [PATCH] leds: sun50i-a100: avoid division-by-zero
 warning
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 [李琼斯]
Powered by blists - more mailing lists
 
