From: Sam Ravnborg Date: Sun, 26 May 2019 17:35:30 +0000 (+0200) Subject: drm: make drm/drm_legacy.h self-contained X-Git-Tag: v5.3-rc1~81^2~24^2~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cbe932a38dc67f4c5c2fa6ffc4e7f4efa27c06f7;p=thirdparty%2Flinux.git drm: make drm/drm_legacy.h self-contained Do not require users of include/drm/drm_legacy.h to include other files just to let it build. Signed-off-by: Sam Ravnborg Acked-by: Daniel Vetter Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Sean Paul Cc: David Airlie Link: https://patchwork.freedesktop.org/patch/msgid/20190526173535.32701-3-sam@ravnborg.org --- diff --git a/include/drm/drm_legacy.h b/include/drm/drm_legacy.h index 2182a56ac4212..58dc0c04bf993 100644 --- a/include/drm/drm_legacy.h +++ b/include/drm/drm_legacy.h @@ -1,11 +1,5 @@ #ifndef __DRM_DRM_LEGACY_H__ #define __DRM_DRM_LEGACY_H__ - -#include -#include - -struct drm_device; - /* * Legacy driver interfaces for the Direct Rendering Manager * @@ -39,6 +33,12 @@ struct drm_device; * OTHER DEALINGS IN THE SOFTWARE. */ +#include +#include +#include + +struct drm_device; +struct file; /* * Legacy Support for palateontologic DRM drivers