From 334d107a2c1a1e09112e094acd560fdbb68b1b65 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Mon, 17 Feb 2020 20:42:19 +0200 Subject: [PATCH] drm/i915/gem: use spinlock_t instead of struct spinlock spinlock_t is one case where the typedef is to be preferred over struct spinlock. Fixes: cffd25855556 ("drm/i915/gem: Don't leak non-persistent requests on changing engines") Cc: Chris Wilson Cc: Tvrtko Ursulin Reviewed-by: Chris Wilson Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/20200217184219.15325-1-jani.nikula@intel.com --- drivers/gpu/drm/i915/gem/i915_gem_context_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_context_types.h b/drivers/gpu/drm/i915/gem/i915_gem_context_types.h index b9a1d54a4643d..28760bd03265d 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_context_types.h +++ b/drivers/gpu/drm/i915/gem/i915_gem_context_types.h @@ -181,7 +181,7 @@ struct i915_gem_context { char name[TASK_COMM_LEN + 8]; struct { - struct spinlock lock; + spinlock_t lock; struct list_head engines; } stale; }; -- 2.39.5