]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/syncobj: Mark up the fence as an RCU protected pointer
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Nov 2017 20:03:33 +0000 (22:03 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 9 Nov 2017 18:31:18 +0000 (20:31 +0200)
We take advantage of that syncobj->fence is an RCU-protected pointer, and
so sparse complains that it is lacking annotation.

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>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171102200336.23347-2-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
include/drm/drm_syncobj.h

index c00fee5398224735311fa7581bfe62481cf4ffea..4556606732599b7034f7085e612fcae24e7df3ac 100644 (file)
@@ -49,7 +49,7 @@ struct drm_syncobj {
         * This field should not be used directly.  Use drm_syncobj_fence_get
         * and drm_syncobj_replace_fence instead.
         */
-       struct dma_fence *fence;
+       struct dma_fence __rcu *fence;
        /**
         * @cb_list:
         * List of callbacks to call when the fence gets replaced