mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-27 15:44:19 +00:00
When building with CONFIG_PM=y and CONFIG_PM_SLEEP=n (such as ARCH=riscv
allmodconfig), the following warnings/errors occur:
drivers/gpu/drm/msm/adreno/adreno_device.c:679:12: error: 'adreno_system_resume' defined but not used [-Werror=unused-function]
679 | static int adreno_system_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/msm/adreno/adreno_device.c:655:12: error: 'adreno_system_suspend' defined but not used [-Werror=unused-function]
655 | static int adreno_system_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
These functions are only used in SET_SYSTEM_SLEEP_PM_OPS(), which
evaluates to empty when CONFIG_PM_SLEEP is not set, making these
functions unused.
To resolve this, use the SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS()
macros, which were introduced in commit
|
||
|---|---|---|
| .. | ||
| a2xx_gpu.c | ||
| a2xx_gpu.h | ||
| a2xx.xml.h | ||
| a3xx_gpu.c | ||
| a3xx_gpu.h | ||
| a3xx.xml.h | ||
| a4xx_gpu.c | ||
| a4xx_gpu.h | ||
| a4xx.xml.h | ||
| a5xx_debugfs.c | ||
| a5xx_gpu.c | ||
| a5xx_gpu.h | ||
| a5xx_power.c | ||
| a5xx_preempt.c | ||
| a5xx.xml.h | ||
| a6xx_gmu.c | ||
| a6xx_gmu.h | ||
| a6xx_gmu.xml.h | ||
| a6xx_gpu_state.c | ||
| a6xx_gpu_state.h | ||
| a6xx_gpu.c | ||
| a6xx_gpu.h | ||
| a6xx_hfi.c | ||
| a6xx_hfi.h | ||
| a6xx.xml.h | ||
| adreno_common.xml.h | ||
| adreno_device.c | ||
| adreno_gpu.c | ||
| adreno_gpu.h | ||
| adreno_pm4.xml.h | ||