Re: [PATCH] soc: qcom: spm: fix building with CONFIG_REGULATOR=n

From: Bjorn Andersson
Date: Mon Mar 04 2024 - 16:24:06 EST



On Wed, 21 Feb 2024 16:44:51 +0100, Arnd Bergmann wrote:
> The newly added code causes a build failure when -Werror is set:
>
> drivers/soc/qcom/spm.c:388:12: error: 'spm_get_cpu' defined but not used [-Werror=unused-function]
>
> Remove the #ifdef and instead use an IS_ENABLED() check that lets the
> compiler perform dead code elimination instead of the preprocessor.
>
> [...]

Applied, thanks!

[1/1] soc: qcom: spm: fix building with CONFIG_REGULATOR=n
commit: 26a526c25606495e7442feeea53061f81eca22be

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>