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

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 <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-3-sam@ravnborg.org

+6 -6
+6 -6
include/drm/drm_legacy.h
··· 1 1 #ifndef __DRM_DRM_LEGACY_H__ 2 2 #define __DRM_DRM_LEGACY_H__ 3 - 4 - #include <drm/drm_auth.h> 5 - #include <drm/drm_hashtab.h> 6 - 7 - struct drm_device; 8 - 9 3 /* 10 4 * Legacy driver interfaces for the Direct Rendering Manager 11 5 * ··· 33 39 * OTHER DEALINGS IN THE SOFTWARE. 34 40 */ 35 41 42 + #include <drm/drm.h> 43 + #include <drm/drm_auth.h> 44 + #include <drm/drm_hashtab.h> 45 + 46 + struct drm_device; 47 + struct file; 36 48 37 49 /* 38 50 * Legacy Support for palateontologic DRM drivers