diff mbox series

[v1,02/06] drm: make drm_legacy.h self-contained

Message ID 20190519142036.22861-3-sam@ravnborg.org (mailing list archive)
State New, archived
Headers show
Series drm: make headers self-contained | expand

Commit Message

Sam Ravnborg May 19, 2019, 2:20 p.m. UTC
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>
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>
Cc: Daniel Vetter <daniel@ffwll.ch>
---
 include/drm/drm_legacy.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/drm/drm_legacy.h b/include/drm/drm_legacy.h
index 2182a56ac421..1d32acd712de 100644
--- a/include/drm/drm_legacy.h
+++ b/include/drm/drm_legacy.h
@@ -1,10 +1,12 @@ 
 #ifndef __DRM_DRM_LEGACY_H__
 #define __DRM_DRM_LEGACY_H__
 
+#include <drm/drm.h>
 #include <drm/drm_auth.h>
 #include <drm/drm_hashtab.h>
 
 struct drm_device;
+struct file;
 
 /*
  * Legacy driver interfaces for the Direct Rendering Manager