]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Tue, 24 Jul 2018 15:35:37 +0000 (17:35 +0200)
committerRob Clark <robdclark@gmail.com>
Mon, 30 Jul 2018 12:50:12 +0000 (08:50 -0400)
commit4f52dc65ff80369e35c23614612efdc3681d8570
tree8305a90a6b67201e457efbb4694678d93384e0db
parent8772b80db8ed602881add1703ad6f01a671c42c6
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>
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c