drm/i915: Forward declare struct intel_context
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 24 May 2018 15:06:21 +0000 (16:06 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
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 <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180524150621.17332-2-tvrtko.ursulin@linux.intel.com
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);