drm/i915: Remove unused i915_gem_context_lookup_engine
diff mbox series

Message ID 20190709093105.24699-1-tvrtko.ursulin@linux.intel.com
State New
Headers show
Series
  • drm/i915: Remove unused i915_gem_context_lookup_engine
Related show

Commit Message

Tvrtko Ursulin July 9, 2019, 9:31 a.m. UTC
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

There are no known plans to start using it either.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
 drivers/gpu/drm/i915/gem/i915_gem_context.h | 6 ------
 1 file changed, 6 deletions(-)

Comments

Chris Wilson July 9, 2019, 9:32 a.m. UTC | #1
Quoting Tvrtko Ursulin (2019-07-09 10:31:05)
> From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> 
> There are no known plans to start using it either.
> 
> Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

I think I used it in the patch/series and you talked me out of it.
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris
Chris Wilson July 9, 2019, 8:37 p.m. UTC | #2
Quoting Chris Wilson (2019-07-09 10:32:57)
> Quoting Tvrtko Ursulin (2019-07-09 10:31:05)
> > From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> > 
> > There are no known plans to start using it either.
> > 
> > Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
> 
> I think I used it in the patch/series and you talked me out of it.
> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>

Pushed before someone finds a use.
-Chris

Patch
diff mbox series

diff --git a/drivers/gpu/drm/i915/gem/i915_gem_context.h b/drivers/gpu/drm/i915/gem/i915_gem_context.h
index 9691dd062f72..106e2ccf7a4c 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_context.h
+++ b/drivers/gpu/drm/i915/gem/i915_gem_context.h
@@ -197,12 +197,6 @@  i915_gem_context_unlock_engines(struct i915_gem_context *ctx)
 	mutex_unlock(&ctx->engines_mutex);
 }
 
-static inline struct intel_context *
-i915_gem_context_lookup_engine(struct i915_gem_context *ctx, unsigned int idx)
-{
-	return i915_gem_context_engines(ctx)->engines[idx];
-}
-
 static inline struct intel_context *
 i915_gem_context_get_engine(struct i915_gem_context *ctx, unsigned int idx)
 {