projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e823c
)
drm/syncobj: Mark up the fence as an RCU protected pointer
author
Chris Wilson
<
[email protected]
>
Thu, 2 Nov 2017 20:03:33 +0000
(22:03 +0200)
committer
Ville Syrjälä
<
[email protected]
>
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 <
[email protected]
>
Cc: Jason Ekstrand <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc: Alex Deucher <
[email protected]
>
Cc: Christian König <
[email protected]
>
Cc: Sumit Semwal <
[email protected]
>
Signed-off-by: Chris Wilson <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Daniel Vetter <
[email protected]
>
Acked-by: Christian König <
[email protected]
>
Signed-off-by: Ville Syrjälä <
[email protected]
>
include/drm/drm_syncobj.h
patch
|
blob
|
history
diff --git
a/include/drm/drm_syncobj.h
b/include/drm/drm_syncobj.h
index c00fee5398224735311fa7581bfe62481cf4ffea..4556606732599b7034f7085e612fcae24e7df3ac 100644
(file)
--- 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