From: Jani Nikula Date: Mon, 17 Feb 2020 18:42:19 +0000 (+0200) Subject: drm/i915/gem: use spinlock_t instead of struct spinlock X-Git-Tag: baikal/mips/sdk5.9~13997^2~18^2~58 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=334d107a2c1a1e09112e094acd560fdbb68b1b65;p=kernel.git 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 --- 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; };