drm/i915: Forward declare struct intel_context
authorTvrtko Ursulin <[email protected]>
Thu, 24 May 2018 15:06:21 +0000 (16:06 +0100)
committerTvrtko Ursulin <[email protected]>
Fri, 25 May 2018 07:21:19 +0000 (08:21 +0100)
This is to avoid an error with structure declared in parameter list if the
include ordering changes.

Signed-off-by: Tvrtko Ursulin <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_gem_context.h

index 84fef3b1e6e4e7c3f513237dd762f0097a758cf6..b116e4942c10d13eb7e9771a4f50e737e47d185a 100644 (file)
@@ -46,6 +46,8 @@ struct intel_ring;
 
 #define DEFAULT_CONTEXT_HANDLE 0
 
+struct intel_context;
+
 struct intel_context_ops {
        void (*unpin)(struct intel_context *ce);
        void (*destroy)(struct intel_context *ce);