diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-11-24 17:30:26 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-11-25 07:58:55 +0100 |
commit | b61abd49c5dd07d3b97b638128982c3feef99a93 (patch) | |
tree | c366072a8cda32ad902aabb88489bbd599b64297 /virt | |
parent | 0a4c9ffbd47669d1a0534dbbd45c2855531a6e7d (diff) |
drm/hisilicon/hibmc: mark PM functions __maybe_unused
When CONFIG_PM_SLEEP is disabled, we get a harmless warning
drm/hisilicon/hibmc/hibmc_drm_drv.c:115:12: error: ‘hibmc_pm_resume’ defined but not used [-Werror=unused-function]
drm/hisilicon/hibmc/hibmc_drm_drv.c:97:12: error: ‘hibmc_pm_suspend’ defined but not used [-Werror=unused-function]
Marking the functions as __maybe_unused avoids the warning without
having to add an #ifdef.
Fixes: 5e0df3a08f3d ("drm/hisilicon/hibmc: Add hisilicon hibmc drm master driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161124163107.3914495-1-arnd@arndb.de
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions