]> Git Repo - J-linux.git/commitdiff
drm: forward declare struct drm_file in drm_syncobj.h
authorJani Nikula <[email protected]>
Fri, 28 Dec 2018 08:28:15 +0000 (10:28 +0200)
committerJani Nikula <[email protected]>
Wed, 2 Jan 2019 09:38:08 +0000 (11:38 +0200)
drm_syncobj.h uses struct drm_file pointers, forward declare struct
drm_file to make the header self-contained. This prepares for dropping
drmP.h from files including drm_syncobj.h.

Switch from "" to <> includes while at it.

v2: forward declare instead of including drm_file.h (Daniel)

[Updated commit message per Laurent's review while applying.]

Cc: Sam Ravnborg <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Reviewed-by: Daniel Vetter <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
include/drm/drm_syncobj.h

index 29244cbcd05e127d643cc3dc055a324b1708a0de..ef57215126328ba619c6d83a0ca4cc08eb057b44 100644 (file)
@@ -26,7 +26,9 @@
 #ifndef __DRM_SYNCOBJ_H__
 #define __DRM_SYNCOBJ_H__
 
-#include "linux/dma-fence.h"
+#include <linux/dma-fence.h>
+
+struct drm_file;
 
 struct drm_syncobj_cb;
 
This page took 0.05727 seconds and 4 git commands to generate.