* [PATCH] drm/amdgpu: fix drm-get-put.cocci warnings
@ 2017-06-07 8:14 Julia Lawall
0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2017-06-07 8:14 UTC (permalink / raw)
To: Christian König, Hawking Zhang, Alex Deucher, David Airlie,
Michel Dänzer, Mario Kleiner, dri-devel, kbuild-all,
amd-gfx, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 773 bytes --]
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and
drm_*_unreference() helpers.
Generated by: scripts/coccinelle/api/drm-get-put.cocci
CC: Christian König <christian.koenig@amd.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
Please take the patch only if it's a positive warning. Thanks!
amdgpu_prime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
@@ -173,7 +173,7 @@ amdgpu_gem_prime_foreign_bo(struct amdgp
continue;
ww_mutex_unlock(&bo->tbo.resv->lock);
- drm_gem_object_reference(&gobj->base);
+ drm_gem_object_get(&gobj->base);
return &gobj->base;
}
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-07 8:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-07 8:14 [PATCH] drm/amdgpu: fix drm-get-put.cocci warnings Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).