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

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

+9 -2
+9 -2
include/drm/drm_auth.h
··· 1 + #ifndef _DRM_AUTH_H_ 2 + #define _DRM_AUTH_H_ 3 + 1 4 /* 2 5 * Internal Header for the Direct Rendering Manager 3 6 * ··· 28 25 * OTHER DEALINGS IN THE SOFTWARE. 29 26 */ 30 27 31 - #ifndef _DRM_AUTH_H_ 32 - #define _DRM_AUTH_H_ 28 + #include <linux/idr.h> 29 + #include <linux/kref.h> 30 + #include <linux/wait.h> 31 + 32 + struct drm_file; 33 + struct drm_hw_lock; 33 34 34 35 /* 35 36 * Legacy DRI1 locking data structure. Only here instead of in drm_legacy.h for