Re: [PATCH] iio: adc: ti-ads1262: use umin() for excitation array lengths

From: Joshua Crofts

Date: Mon Nov 09 2026 - 04:53:24 EST


On Sun, 08 Nov 2026 19:55:51 -0300
Kurt Borja <kuurtb@xxxxxxxxx> wrote:

> min() rejects mixing the signed count with the unsigned ARRAY_SIZE()
> unless the compiler can prove count is non-negative, which fails on
> some configs and breaks the build. count is already checked to be
> non-negative, so use umin().
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202610241549.J9R32Wf7-lkp@xxxxxxxxx/
> Closes: https://lore.kernel.org/oe-kbuild-all/202611080814.7RmHoQ6e-lkp@xxxxxxxxx/
> Fixes: b0b43a26dfc9 ("iio: adc: ti-ads1262: support excitation currents")
> Signed-off-by: Kurt Borja <kuurtb@xxxxxxxxx>
> ---

Reviewed-by: Joshua Crofts <crofts@xxxxxxxxxx>

--
Kind regards,
Joshua Crofts