Skip to content

Commit 2197f55

Browse files
committed
drm: make drm/drm_auth.h self contained
Do not require users of include/drm/drm_auth.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-2-sam@ravnborg.org
1 parent 182c58a commit 2197f55

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎include/drm/drm_auth.h‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef _DRM_AUTH_H_
2+
#define _DRM_AUTH_H_
3+
14
/*
25
* Internal Header for the Direct Rendering Manager
36
*
@@ -25,8 +28,12 @@
2528
* OTHER DEALINGS IN THE SOFTWARE.
2629
*/
2730

28-
#ifndef _DRM_AUTH_H_
29-
#define _DRM_AUTH_H_
31+
#include <linux/idr.h>
32+
#include <linux/kref.h>
33+
#include <linux/wait.h>
34+
35+
struct drm_file;
36+
struct drm_hw_lock;
3037

3138
/*
3239
* Legacy DRI1 locking data structure. Only here instead of in drm_legacy.h for

0 commit comments

Comments
 (0)