From: Chris Wilson Date: Thu, 2 Nov 2017 20:03:33 +0000 (+0200) Subject: drm/syncobj: Mark up the fence as an RCU protected pointer X-Git-Tag: v4.16-rc1~96^2~32^2~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19d814cc0765b409e2b90ed7a5514a15ce6ecf7b;p=thirdparty%2Fkernel%2Flinux.git drm/syncobj: Mark up the fence as an RCU protected pointer We take advantage of that syncobj->fence is an RCU-protected pointer, and so sparse complains that it is lacking annotation. Cc: Dave Airlie Cc: Jason Ekstrand Cc: linaro-mm-sig@lists.linaro.org Cc: linux-media@vger.kernel.org Cc: Alex Deucher Cc: Christian König Cc: Sumit Semwal Signed-off-by: Chris Wilson Link: https://patchwork.freedesktop.org/patch/msgid/20171102200336.23347-2-ville.syrjala@linux.intel.com Reviewed-by: Daniel Vetter Acked-by: Christian König Signed-off-by: Ville Syrjälä --- diff --git a/include/drm/drm_syncobj.h b/include/drm/drm_syncobj.h index c00fee5398224..4556606732599 100644 --- a/include/drm/drm_syncobj.h +++ b/include/drm/drm_syncobj.h @@ -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