All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/exynos: Fix build breakage on !DRM_EXYNOS_FIMD
@ 2015-05-02  4:08 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 23+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-02  4:08 UTC (permalink / raw)
  To: Inki Dae, Joonyoung Shim, Seung-Woo Kim, Kyungmin Park,
	David Airlie, Kukjin Kim, dri-devel, linux-arm-kernel,
	linux-samsung-soc, linux-kernel
  Cc: Krzysztof Kozlowski

Selecting CONFIG_FB_S3C disables CONFIG_DRM_EXYNOS_FIMD leading to build
error:

drivers/built-in.o: In function `exynos_dp_dpms':
binder.c:(.text+0xd6a840): undefined reference to `fimd_dp_clock_enable'
binder.c:(.text+0xd6ab54): undefined reference to `fimd_dp_clock_enable'

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/gpu/drm/exynos/exynos_drm_fimd.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.h b/drivers/gpu/drm/exynos/exynos_drm_fimd.h
index b4fcaa568456..db67f3d9786d 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fimd.h
+++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.h
@@ -10,6 +10,10 @@
 #ifndef _EXYNOS_DRM_FIMD_H_
 #define _EXYNOS_DRM_FIMD_H_
 
+#ifdef CONFIG_DRM_EXYNOS_FIMD
 extern void fimd_dp_clock_enable(struct exynos_drm_crtc *crtc, bool enable);
+#else
+static inline void fimd_dp_clock_enable(struct exynos_drm_crtc *crtc, bool enable) {};
+#endif
 
 #endif /* _EXYNOS_DRM_FIMD_H_ */
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2015-05-04 14:43 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-02  4:08 [PATCH] drm/exynos: Fix build breakage on !DRM_EXYNOS_FIMD Krzysztof Kozlowski
2015-05-02  4:08 ` Krzysztof Kozlowski
2015-05-04  7:43 ` Inki Dae
2015-05-04  7:43   ` Inki Dae
2015-05-04  7:43   ` Inki Dae
2015-05-04 11:34   ` Daniel Stone
2015-05-04 11:34     ` Daniel Stone
2015-05-04 11:34     ` Daniel Stone
2015-05-04 12:43     ` Krzysztof Kozlowski
2015-05-04 12:43       ` Krzysztof Kozlowski
2015-05-04 12:43       ` Krzysztof Kozlowski
2015-05-04 13:15       ` Andrzej Hajda
2015-05-04 13:15         ` Andrzej Hajda
2015-05-04 13:15         ` Andrzej Hajda
2015-05-04 13:24         ` Krzysztof Kozlowski
2015-05-04 13:24           ` Krzysztof Kozlowski
2015-05-04 13:24           ` Krzysztof Kozlowski
2015-05-04 14:42       ` Inki Dae
2015-05-04 14:42         ` Inki Dae
2015-05-04 14:42         ` Inki Dae
2015-05-04 14:31     ` Inki Dae
2015-05-04 14:31       ` Inki Dae
2015-05-04 14:31       ` Inki Dae

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.