diff options
author | Dave Airlie <airlied@redhat.com> | 2019-04-23 01:56:01 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-04-24 04:33:30 +0200 |
commit | 83c163f7eb5948051b6fcb084ab3b81880c147dd (patch) | |
tree | f8343b49e4650b306da60ca67104deb57d527a06 /include/drm | |
parent | drm: allow removal of legacy codepaths (v4.1) (diff) | |
download | linux-83c163f7eb5948051b6fcb084ab3b81880c147dd.tar.xz linux-83c163f7eb5948051b6fcb084ab3b81880c147dd.zip |
drm/legacy: place all drm legacy members under DRM_LEGACY.
This places a bunch of the legacy members of drm_device into
only being there when legacy is enabled.
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_device.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_device.h b/include/drm/drm_device.h index d5e092dccf3e..7f9ef709b2b6 100644 --- a/include/drm/drm_device.h +++ b/include/drm/drm_device.h @@ -306,7 +306,7 @@ struct drm_device { /* Everything below here is for legacy driver, never use! */ /* private: */ - +#if IS_ENABLED(CONFIG_DRM_LEGACY) /* Context handle management - linked list of context handles */ struct list_head ctxlist; @@ -353,6 +353,7 @@ struct drm_device { /* Scatter gather memory */ struct drm_sg_mem *sg; +#endif }; #endif |