]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Mark up sole accessor to ctx->vm as being protected
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Nov 2019 22:12:01 +0000 (22:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Nov 2019 10:52:09 +0000 (10:52 +0000)
commitb5572d312d5925ff05b46c42ccbad0e945dc813c
tree6a9be819e233ebe0648d29c4672e570e66e04e6b
parenta8c9a7f52ec5a4b36ce183efd5fda4e4fd90ec45
drm/i915/selftests: Mark up sole accessor to ctx->vm as being protected

In the selftests, where we are accessing a private ctx from within the
confines of a single test, we know that the ctx->vm pointer is static
and bounded by the lifetime of the test. We can use a simple helper to
provide the RCU annotations to keep sparse happy.

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