]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Ditch the i915_gem_ww_ctx loop member
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 16 Aug 2021 17:14:44 +0000 (19:14 +0200)
committerMatthew Auld <matthew.auld@intel.com>
Fri, 20 Aug 2021 08:39:41 +0000 (09:39 +0100)
commitc9b6e94963bc3a53110f1c9cd7e5e4ae571413cd
tree203001b0efe03aebd04b2cc5b1d9c2db911d94f6
parentfaf890985e30d5e88cc3a7c50c1bcad32f89ab7c
drm/i915: Ditch the i915_gem_ww_ctx loop member

It's only used by the for_i915_gem_ww() macro and we can use
the (typically) on-stack _err variable in its place.

v2:
- Don't clear the _err variable when entering the loop
  (Matthew Auld, Maarten Lankhorst).
- Use parentheses around the _err macro argument.
- Fix up comment.

Cc: Matthew Auld <matthew.william.auld@gmail.com>
Suggested-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210816171444.105469-1-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/i915_gem_ww.h