diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-05-24 16:06:21 +0100 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2018-05-25 08:21:19 +0100 |
commit | 8359768c5c325f841473343288fc4d55a256954f (patch) | |
tree | 5ead83aeb56693410b3d1e0128b1252fe9711961 /drivers/gpu/drm/i915/i915_gem_context.h | |
parent | c5d1f5562ea7f83fe911d6f9fcb3a32a8e1139ae (diff) | |
download | linux-stable-8359768c5c325f841473343288fc4d55a256954f.tar.gz linux-stable-8359768c5c325f841473343288fc4d55a256954f.tar.bz2 linux-stable-8359768c5c325f841473343288fc4d55a256954f.zip |
drm/i915: Forward declare struct intel_context
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_context.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_context.h b/drivers/gpu/drm/i915/i915_gem_context.h index 84fef3b1e6e4..b116e4942c10 100644 --- a/drivers/gpu/drm/i915/i915_gem_context.h +++ b/drivers/gpu/drm/i915/i915_gem_context.h @@ -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); |