summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_file.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2019-04-23 02:01:50 +0200
committerDave Airlie <airlied@redhat.com>2019-04-24 04:36:32 +0200
commitee22f76306a68359c33809f8895eff603e71584b (patch)
tree2a538cae03238976c2db300f1ee5fbbecbea0160 /include/drm/drm_file.h
parentdrm/legacy: place all drm legacy members under DRM_LEGACY. (diff)
downloadlinux-ee22f76306a68359c33809f8895eff603e71584b.tar.xz
linux-ee22f76306a68359c33809f8895eff603e71584b.zip
drm/legacy: remove some legacy lock struct members
This removes these unless legacy is enabled. The lock count init is unneeded anyways since it's kzalloc. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_file.h')
-rw-r--r--include/drm/drm_file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h
index 6710b612e2f6..67af60bb527a 100644
--- a/include/drm/drm_file.h
+++ b/include/drm/drm_file.h
@@ -335,7 +335,9 @@ struct drm_file {
struct drm_prime_file_private prime;
/* private: */
+#if IS_ENABLED(CONFIG_DRM_LEGACY)
unsigned long lock_count; /* DRI1 legacy lock count */
+#endif
};
/**