aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2024-02-21 16:44:51 +0100
committerBjorn Andersson <andersson@kernel.org>2024-03-03 19:54:47 -0800
commit26a526c25606495e7442feeea53061f81eca22be (patch)
treef53fd946ea052fca015548075b70e32f40c3257b /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentaa05f47474c02d38d88c32c633a551911c6fdc40 (diff)
soc: qcom: spm: fix building with CONFIG_REGULATOR=n
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. Fixes: 6496dba142f4 ("soc: qcom: spm: add support for voltage regulator") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20240221154457.2007420-1-arnd@kernel.org Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions