drm/exynos: fix build warnings
authorJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 28 Jul 2016 02:32:10 +0000 (11:32 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 28 Jul 2016 02:38:49 +0000 (11:38 +0900)
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>
drivers/gpu/drm/exynos/exynos_drm_drv.h

index d0d77bdb1f207fb42d94f7699d4038707890777c..e3377204f192d1b086332b70276ea8b41ec16124 100644 (file)
@@ -317,7 +317,7 @@ static inline int exynos_dpi_remove(struct exynos_drm_display *display)
 #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. */