mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 14:40:12 -04:00
drm/msm: mark PM functions as __maybe_unused
The suspend/resume functions are not referenced when power
management is disabled:
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c:1288:12: error: 'dpu_runtime_resume' defined but not used [-Werror=unused-function]
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c:1261:12: error: 'dpu_runtime_suspend' defined but not used [-Werror=unused-function]
This marks them as __maybe_unused to let the compiler
drop the functions without complaining.
Fixes: 591225291ca2 ("drm/msm: Add SDM845 DPU support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
@@ -1258,7 +1258,7 @@ static int dpu_dev_remove(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int dpu_runtime_suspend(struct device *dev)
|
||||
static int __maybe_unused dpu_runtime_suspend(struct device *dev)
|
||||
{
|
||||
int rc = -1;
|
||||
struct platform_device *pdev = to_platform_device(dev);
|
||||
@@ -1285,7 +1285,7 @@ static int dpu_runtime_suspend(struct device *dev)
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int dpu_runtime_resume(struct device *dev)
|
||||
static int __maybe_unused dpu_runtime_resume(struct device *dev)
|
||||
{
|
||||
int rc = -1;
|
||||
struct platform_device *pdev = to_platform_device(dev);
|
||||
|
||||
Reference in New Issue
Block a user