linux_dsm_epyc7002/drivers/gpu/drm/hisilicon/hibmc
Arnd Bergmann b61abd49c5 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: 5e0df3a08f ("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
2016-11-25 07:58:55 +01:00
..
hibmc_drm_de.c drm/hisilicon/hibmc: Add support for display engine 2016-11-17 15:26:25 +08:00
hibmc_drm_drv.c drm/hisilicon/hibmc: mark PM functions __maybe_unused 2016-11-25 07:58:55 +01:00
hibmc_drm_drv.h drm/hisilicon/hibmc: Add support for vblank interrupt 2016-11-17 15:26:27 +08:00
hibmc_drm_fbdev.c drm/hisilicon/hibmc: Add support for frame buffer 2016-11-17 15:26:25 +08:00
hibmc_drm_regs.h drm/hisilicon/hibmc: Add hisilicon hibmc drm master driver 2016-11-17 15:26:24 +08:00
hibmc_drm_vdac.c drm/hisilicon/hibmc: Add support for VDAC 2016-11-17 15:26:26 +08:00
hibmc_ttm.c drm/hisilicon/hibmc: Add support for display engine 2016-11-17 15:26:25 +08:00
Kconfig drm/hisilicon/hibmc: Add hisilicon hibmc drm master driver 2016-11-17 15:26:24 +08:00
Makefile drm/hisilicon/hibmc: Add support for VDAC 2016-11-17 15:26:26 +08:00