linux/drivers/gpu/drm/exynos
Arnd Bergmann 7e17510018 drm: exynos: mark pm functions as __maybe_unused
The rework of the exynos DRM clock handling introduced
warnings for configurations that have CONFIG_PM disabled:

drivers/gpu/drm/exynos/exynos_hdmi.c:736:13: error: 'hdmi_clk_disable_gates' defined but not used [-Werror=unused-function]
 static void hdmi_clk_disable_gates(struct hdmi_context *hdata)
             ^~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/exynos/exynos_hdmi.c:717:12: error: 'hdmi_clk_enable_gates' defined but not used [-Werror=unused-function]
 static int hdmi_clk_enable_gates(struct hdmi_context *hdata)

The problem is that the PM functions themselves are inside of
an #ifdef, but some functions they call are not.

This patch removes the #ifdef and instead marks the PM functions
as __maybe_unused, which is a more reliable way to get it right.

Link: https://patchwork.kernel.org/patch/8436281/
Fixes: 9be7e98984 ("drm/exynos/hdmi: clock code re-factoring")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
2017-07-27 09:24:03 +09:00
..
exynos7_drm_decon.c drm/exynos: kill mode_set_nofb callback 2017-06-01 16:21:35 +09:00
exynos5433_drm_decon.c drm/exynos/decon5433: remove useless check 2017-06-01 16:21:38 +09:00
exynos_dp.c drm: convert drivers to use drm_of_find_panel_or_bridge 2017-04-06 17:00:27 -04:00
exynos_drm_core.c drm/exynos: remove superfluous inclusions of fbdev header 2016-06-19 14:37:28 +09:00
exynos_drm_crtc.c drm/exynos: kill mode_set_nofb callback 2017-06-01 16:21:35 +09:00
exynos_drm_crtc.h drm/exynos: kill exynos_drm_crtc::pipe 2017-06-01 16:21:34 +09:00
exynos_drm_dpi.c drm: convert drivers to use of_graph_get_remote_node 2017-04-06 17:00:27 -04:00
exynos_drm_drv.c exynos_drm: Clean up duplicated assignment in exynos_drm_driver 2017-07-27 09:24:01 +09:00
exynos_drm_drv.h drm/exynos: kill mode_set_nofb callback 2017-06-01 16:21:35 +09:00
exynos_drm_dsi.c drm/exynos/dsi: Remove error handling for bridge_node DT parsing 2017-07-27 09:24:02 +09:00
exynos_drm_fb.c drm/exynos: don't use DMA_ERROR_CODE 2017-06-20 11:12:57 +02:00
exynos_drm_fb.h Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2016-01-17 13:40:25 -08:00
exynos_drm_fbdev.c Merge branch 'drm/next/platform' of git://linuxtv.org/pinchartl/media into drm-misc-next 2017-03-11 11:46:03 +01:00
exynos_drm_fbdev.h drm/exynos: build fbdev code conditionally 2016-04-30 01:03:45 +09:00
exynos_drm_fimc.c drm/exynos: Print kernel pointers in a restricted form 2017-03-21 13:17:22 +09:00
exynos_drm_fimc.h
exynos_drm_fimd.c drm/exynos: kill mode_set_nofb callback 2017-06-01 16:21:35 +09:00
exynos_drm_g2d.c drm/exynos: g2d: change platform driver name to 'exynos-drm-g2d' 2017-02-07 13:52:49 +09:00
exynos_drm_g2d.h
exynos_drm_gem.c drm: drop drm_[cm]alloc* helpers 2017-05-18 17:22:39 +02:00
exynos_drm_gem.h mm, fs: reduce fault, page_mkwrite, and pfn_mkwrite to take only vmf 2017-02-24 17:46:54 -08:00
exynos_drm_gsc.c drm/exynos: Print kernel pointers in a restricted form 2017-03-21 13:17:22 +09:00
exynos_drm_gsc.h
exynos_drm_iommu.c drm/exynos: iommu: move ARM specific code to exynos_drm_iommu.h 2016-07-13 23:06:06 +09:00
exynos_drm_iommu.h iommu/dma: Avoid PCI host bridge windows 2016-09-16 09:34:22 +01:00
exynos_drm_ipp.c drm/exynos: Print kernel pointers in a restricted form 2017-03-21 13:17:22 +09:00
exynos_drm_ipp.h drm/exynos/ipp: remove unused field in command node 2014-09-20 00:56:10 +09:00
exynos_drm_mic.c drm/exynos: mic: add a bridge at probe 2017-07-27 09:24:02 +09:00
exynos_drm_plane.c drm/exynos: set plane possible_crtcs in exynos_plane_init 2017-06-01 16:21:34 +09:00
exynos_drm_plane.h drm/exynos: set plane possible_crtcs in exynos_plane_init 2017-06-01 16:21:34 +09:00
exynos_drm_rotator.c drm/exynos: Print kernel pointers in a restricted form 2017-03-21 13:17:22 +09:00
exynos_drm_rotator.h
exynos_drm_vidi.c drm/exynos: kill pipe field from drivers contexts 2017-06-01 16:21:34 +09:00
exynos_drm_vidi.h
exynos_hdmi.c drm: exynos: mark pm functions as __maybe_unused 2017-07-27 09:24:03 +09:00
exynos_mixer.c drm: exynos: constify mixer_match_types and *_mxr_drv_data. 2017-07-27 09:24:01 +09:00
Kconfig drm/exynos: select CEC_CORE if CEC_NOTIFIER 2017-07-27 09:24:03 +09:00
Makefile drm/exynos: build fbdev code conditionally 2016-04-30 01:03:45 +09:00
regs-fimc.h
regs-gsc.h drm/exynos: gsc: add device tree support and remove usage of static mappings 2015-12-13 22:22:53 +09:00
regs-hdmi.h drm/exynos/hdmi: refactor infoframe code 2016-12-05 22:08:58 +09:00
regs-mixer.h drm/exynos: mixer: document YCbCr magic numbers 2017-06-01 16:21:36 +09:00
regs-rotator.h
regs-vp.h