drm: fix drm-get-put.cocci warnings
PATCH 1/1 drm: fix drm-get-put.cocci warnings
From: Fengguang Wu <[email protected]>
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers.
Generated by: scripts/coccinelle/api/drm-get-put.cocci
---
tree: https://github.com/shenki/linux drm-v1 head: 9680ed7979d5d403c6bde36271a048d62c048180 commit: 6784ac15bc6889280522b04b97f1fb1208ee45e7 [23/27] drm: Add ASPEED
GFX
driver
aspeed_gfx_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +2 -2
@@ -268,7 +268,7 @@ static int aspeed_gfx_probe(struct platf err_unload:aspeed_gfx_unload (drm); err_free: -drm_dev_unref (drm); +drm_dev_put (drm);return ret; }
@@ -279,7 +279,7 @@ static int aspeed_gfx_remove(struct platdrm_dev_unregister (drm);aspeed_gfx_unload (drm); -drm_dev_unref (drm); +drm_dev_put (drm);return 0 ; }
Quoted 5 lines · Julia Lawall
From: Fengguang Wu <[email protected]>
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers.
Quoted 8 lines
Generated by:
scripts/coccinelle/api/drm-get-put.cocciFixes 6784ac15bc68 ("drm: Add ASPEED GFX driver")Signed-off-by Fengguang Wu <[email protected]>Signed-off-by Julia Lawall <[email protected]>---
tree: https://github.com/shenki/linux drm-v1
This isn't an upstream tree (and the aspeed driver isn't in upstream afaict), so no need for spamming mailing lists I think.
But thanks for doing all this, great motivation to put more of the drm refactorings into cocci files.
Cheers, Daniel
Quoted 32 lines
head: 9680ed7979d5d403c6bde36271a048d62c048180 commit: 6784ac15bc6889280522b04b97f1fb1208ee45e7 [23/27] drm: Add ASPEEDGFX
driveraspeed_gfx_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +2
-2@@ -268,7 +268,7 @@ static int aspeed_gfx_probe(struct platf err_unload:aspeed_gfx_unload (drm); err_free: -drm_dev_unref (drm); +drm_dev_put (drm);return ret; }@@ -279,7 +279,7 @@ static int aspeed_gfx_remove(struct platdrm_dev_unregister (drm);aspeed_gfx_unload (drm); -drm_dev_unref (drm); +drm_dev_put (drm);return 0 ; }_______________________________________________
dri-devel mailing list
dri-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Joel Stanley
maintainerQuoted 13 lines · Daniel Vetter
Quoted 12 lines · Julia Lawall
From: Fengguang Wu <[email protected]>
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers.
Generated by:
scripts/coccinelle/api/drm-get-put.cocciFixes 6784ac15bc68 ("drm: Add ASPEED GFX driver")Signed-off-by Fengguang Wu <[email protected]>Signed-off-by Julia Lawall <[email protected]>---
Quoted 4 lines
Quoted 1 line
tree: https://github.com/shenki/linux drm-v1
This isn't an upstream tree (and the aspeed driver isn't in upstream afaict), so no need for spamming mailing lists I think.
Agreed.
Julia, I am happy getting a heads up about changes from the 0day bots, but I would prefer not to spam others or the lists. If we can't restrict the emails to just me then perhaps it's best to disable them for github.com/shenki/linux.git.
FWIW, the aspeed gfx driver has been posted to dri-devel so it will be upstream soon-ish.
Cheers,
Joel
Quoted 13 lines · Daniel Vetter
Quoted 12 lines · Julia Lawall
From: Fengguang Wu <[email protected]>
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers.
Generated by:
scripts/coccinelle/api/drm-get-put.cocciFixes 6784ac15bc68 ("drm: Add ASPEED GFX driver")Signed-off-by Fengguang Wu <[email protected]>Signed-off-by Julia Lawall <[email protected]>---
Quoted 4 lines
Quoted 1 line
tree: https://github.com/shenki/linux drm-v1
This isn't an upstream tree (and the aspeed driver isn't in upstream afaict), so no need for spamming mailing lists I think.
Perhaps you can contact Fengguang about this? I just forward to whoever the automatically generated message says to forward to. And I don't always remember to include the information about the tree, which comes to me in another message, so it can indeed be confusing.
Quoted 3 lines
But thanks for doing all this, great motivation to put more of the drm refactorings into cocci files.
Most welcome :)
julia
Quoted 39 lines
Cheers, Daniel
Quoted 28 lines
head: 9680ed7979d5d403c6bde36271a048d62c048180 commit: 6784ac15bc6889280522b04b97f1fb1208ee45e7 [23/27] drm: Add ASPEEDGFX
driveraspeed_gfx_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +2
-2@@ -268,7 +268,7 @@ static int aspeed_gfx_probe(struct platf err_unload:aspeed_gfx_unload (drm); err_free: -drm_dev_unref (drm); +drm_dev_put (drm);return ret; }@@ -279,7 +279,7 @@ static int aspeed_gfx_remove(struct platdrm_dev_unregister (drm);aspeed_gfx_unload (drm); -drm_dev_unref (drm); +drm_dev_put (drm);return 0 ; }Quoted 4 lines
_______________________________________________
dri-devel mailing list
dri-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
Quoted 15 lines
Subject: Re: [kbuild-all] [PATCH] drm: fix
drm-get-put.cocciwarningsQuoted 12 lines · Julia Lawall
From: Fengguang Wu <[email protected]>
Use drm_*_get() and drm_*_put() helpers instead of drm_*_reference() and drm_*_unreference() helpers.
Generated by:
scripts/coccinelle/api/drm-get-put.cocciFixes 6784ac15bc68 ("drm: Add ASPEED GFX driver")Signed-off-by Fengguang Wu <[email protected]>Signed-off-by Julia Lawall <[email protected]>---
Quoted 4 lines
Quoted 1 line
tree: https://github.com/shenki/linux drm-v1
This isn't an upstream tree (and the aspeed driver isn't in upstream afaict), so no need for spamming mailing lists I think.
thanks for feedback Daniel, we will mark this repo as private one to avoid reporting to larger mailing list.
Quoted 47 lines
But thanks for doing all this, great motivation to put more of the drm refactorings into cocci files.
Cheers, Daniel
Quoted 2 lines
head: 9680ed7979d5d403c6bde36271a048d62c048180 commit: 6784ac15bc6889280522b04b97f1fb1208ee45e7 [23/27] drm: AddASPEED
Quoted 26 lines
GFX
driveraspeed_gfx_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +2
-2@@ -268,7 +268,7 @@ static int aspeed_gfx_probe(struct platf err_unload:aspeed_gfx_unload (drm); err_free: -drm_dev_unref (drm); +drm_dev_put (drm);return ret; }@@ -279,7 +279,7 @@ static int aspeed_gfx_remove(struct platdrm_dev_unregister (drm);aspeed_gfx_unload (drm); -drm_dev_unref (drm); +drm_dev_put (drm);return 0 ; }Quoted 4 lines
_______________________________________________
dri-devel mailing list
dri-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
kbuild-all mailing list
kbuild-all at lists.01.org
https://lists.01.org/mailman/listinfo/kbuild-all