Re: [PATCH] power: supply: max17042_battery: Use modern PM ops to clear up warning
From: Sebastian Reichel
Date: Fri Jun 05 2026 - 16:56:22 EST
On Thu, 04 Jun 2026 22:52:28 -0700, Nathan Chancellor wrote:
> When building for a platform that does not have power management, such
> as s390, there is an unused function warning, as
> max17042_suspend_soc_alerts() is only used in max17042_suspend(), which
> is under a CONFIG_PM_SLEEP #ifdef.
>
> drivers/power/supply/max17042_battery.c:957:13: error: 'max17042_suspend_soc_alerts' defined but not used [-Werror=unused-function]
> 957 | static void max17042_suspend_soc_alerts(struct max17042_chip *chip)
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> [...]
Applied, thanks!
[1/1] power: supply: max17042_battery: Use modern PM ops to clear up warning
commit: 4acc0138c4f2fba453da5a5076ad2bba08a7463b
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>