drm/syncobj: Use proper methods for accessing rcu protected pointers
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 2 Nov 2017 20:03:35 +0000 (22:03 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Nov 2017 18:34:21 +0000 (20:34 +0200)
commit563eaf53317f2511f78217a1f8d785b8c8ed1cad
treedd5d7a00d93505f93fba632b6f027c7cc2a944c8
parent5f72db59160c697d1dec3f6074dba72bd834c695
drm/syncobj: Use proper methods for accessing rcu protected pointers

Use rcu_dereference_protected() and rcu_assign_pointer() for accessing
the rcu protected syncobj->fence pointer. This eliminates several sparse
warnings.

Cc: Dave Airlie <airlied@redhat.com>
Cc: Jason Ekstrand <jason@jlekstrand.net>
Cc: linaro-mm-sig@lists.linaro.org
Cc: linux-media@vger.kernel.org
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171102200336.23347-4-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/drm_syncobj.c