Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: make drm_legacy.h self-contained

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

+4
+4
drivers/gpu/drm/drm_legacy.h
··· 29 29 * drivers use them, and removing them are API breaks. 30 30 */ 31 31 #include <linux/list.h> 32 + 33 + #include <drm/drm.h> 34 + #include <drm/drm_device.h> 32 35 #include <drm/drm_legacy.h> 33 36 34 37 struct agp_memory; 35 38 struct drm_device; 36 39 struct drm_file; 40 + struct drm_buf_desc; 37 41 38 42 /* 39 43 * Generic DRM Contexts