drm: make drm_legacy.h self-contained
authorSam Ravnborg <sam@ravnborg.org>
Sun, 26 May 2019 17:35:33 +0000 (19:35 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 27 May 2019 16:06:47 +0000 (18:06 +0200)
Do not require users of drm_legacy.h to include other
files just to let it build

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <maxime.ripard@bootlin.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Link: https://patchwork.freedesktop.org/patch/msgid/20190526173535.32701-6-sam@ravnborg.org
drivers/gpu/drm/drm_legacy.h

index 013ccdfd90befd08b71a447062a2b9eaf98b9c8e..1be3ea32047495379f2468854972c968136699a4 100644 (file)
  * drivers use them, and removing them are API breaks.
  */
 #include <linux/list.h>
+
+#include <drm/drm.h>
+#include <drm/drm_device.h>
 #include <drm/drm_legacy.h>
 
 struct agp_memory;
 struct drm_device;
 struct drm_file;
+struct drm_buf_desc;
 
 /*
  * Generic DRM Contexts