The commit
fe6367c905b6 ("drm/exynos/mixer: enable HDMI-PHY before
configuring MIXER") causes many build warnings like below:
In file included from drivers/gpu/drm/exynos/exynos_drm_drv.c:23:0:
drivers/gpu/drm/exynos/exynos_drm_drv.h:320:13: warning: 'exynos_hdmiphy_enable' defined but not used [-Wunused-function]
static void exynos_hdmiphy_enable(struct exynos_drm_crtc *crtc) {}
^
...
Make to inline function exynos_hdmiphy_enable to avoid build warnings.
Change-Id: Ic3e66cafb8283198143a0534d5b59727c66636be
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
#ifdef CONFIG_DRM_EXYNOS_HDMI
void exynos_hdmiphy_enable(struct exynos_drm_crtc *crtc);
#else
-static void exynos_hdmiphy_enable(struct exynos_drm_crtc *crtc) {}
+static inline void exynos_hdmiphy_enable(struct exynos_drm_crtc *crtc) {}
#endif
/* This function creates a encoder and a connector, and initializes them. */