Re: [PATCH v5 2/2] regulator: adp5055: Add driver for adp5055

From: Mark Brown
Date: Tue Apr 08 2025 - 07:16:05 EST


On Tue, Apr 08, 2025 at 12:25:49PM +0800, Alexis Czezar Torreno wrote:
> Add ADI ADP5055 driver support. The device consists
> of 3 buck regulators able to connect to high input voltages of up to 18V
> with no preregulators.

This breaks an x86_64 allmodconfig build with clang-19:

/build/stage/linux/drivers/regulator/adp5055-regulator.c:169:3: error: variable 'i' is incremented both in the loop header and in the loop body [-Werror,-Wfor-loop-analysis]
169 | i++;
| ^
/build/stage/linux/drivers/regulator/adp5055-regulator.c:160:34: note: incremented here
160 | for (i = 0; i < ADP5055_NUM_CH; i++) {
| ^

Attachment: signature.asc
Description: PGP signature