[PATCH] drm: export crtc_ww_class

Rob Clark robdclark at gmail.com
Sun Nov 13 17:00:20 UTC 2016


kbuild noticed this:

  ERROR: "crtc_ww_class" [drivers/gpu/drm/msm/msm.ko] undefined!

because crtc_ww_class is referenced by drm_modeset_lock_init() which is
static-inline in a header file.

I guess we hadn't noticed yet because no driver so far is creating their
own modeset-locks.  That changes with the msm/mdp5 patches I have lined
up for atomic hwpipe and SMP block assignment.

Signed-off-by: Rob Clark <robdclark at gmail.com>
---
 drivers/gpu/drm/drm_crtc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index e8bc1ae..194e898 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -103,6 +103,7 @@ out:
 EXPORT_SYMBOL(drm_crtc_force_disable_all);
 
 DEFINE_WW_CLASS(crtc_ww_class);
+EXPORT_SYMBOL(crtc_ww_class);
 
 static unsigned int drm_num_crtcs(struct drm_device *dev)
 {
-- 
2.7.4



More information about the dri-devel mailing list