]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Silence sparse for RCU protection inside the constructor
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Nov 2019 22:57:36 +0000 (22:57 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Nov 2019 16:43:33 +0000 (16:43 +0000)
commita0a517b9448ae0b8c4e14659e96e9c16fb143883
treed9e305e878f8a852a632f4214d61951545c1c7db
parentae7a507b4b61ab32a7e12bc2e0e43b752549a7e8
drm/i915/gem: Silence sparse for RCU protection inside the constructor

Inside the constructor, while cloning, we need to replace the
dst->engines. Having forgotten that dst->engines is marked as RCU
protected, we need to add the appropriate annotations to make sparse
happy.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191114225736.616885-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_context.c