]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/gem: use spinlock_t instead of struct spinlock
authorJani Nikula <jani.nikula@intel.com>
Mon, 17 Feb 2020 18:42:19 +0000 (20:42 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 19 Feb 2020 13:08:49 +0000 (15:08 +0200)
spinlock_t is one case where the typedef is to be preferred over struct
spinlock.

Fixes: 42fb60de3129 ("drm/i915/gem: Don't leak non-persistent requests on changing engines")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200217184219.15325-1-jani.nikula@intel.com
drivers/gpu/drm/i915/gem/i915_gem_context_types.h

index b9a1d54a4643df52383052ad7767843a25196a4c..28760bd03265d9c49f62e95816309011efbcf62f 100644 (file)
@@ -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;
 };