mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 09:46:46 +07:00
b61abd49c5
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:
|
||
---|---|---|
.. | ||
hibmc_drm_de.c | ||
hibmc_drm_drv.c | ||
hibmc_drm_drv.h | ||
hibmc_drm_fbdev.c | ||
hibmc_drm_regs.h | ||
hibmc_drm_vdac.c | ||
hibmc_ttm.c | ||
Kconfig | ||
Makefile |