[<prev] [next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.20.1706071013160.3014@hadrien>
Date: Wed, 7 Jun 2017 10:14:34 +0200 (CEST)
From: Julia Lawall <julia.lawall@...6.fr>
To: Christian König <christian.koenig@....com>,
Hawking Zhang <Hawking.Zhang@....com>,
Alex Deucher <alexander.deucher@....com>,
David Airlie <airlied@...ux.ie>,
Michel Dänzer <michel.daenzer@....com>,
Mario Kleiner <mario.kleiner.de@...il.com>,
dri-devel@...ts.freedesktop.org, kbuild-all@...org,
amd-gfx@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drm/amdgpu: fix drm-get-put.cocci warnings
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@....com>
Signed-off-by: Julia Lawall <julia.lawall@...6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.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;
}
Powered by blists - more mailing lists