Skip to content

drm: remove deprecated functions

Fernando Ramos dri-devel linux-arm-kernel linux-doc linux-renesas-soc lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 35 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9drm: replace "drm_gem_object_unreference_unlocked" function with "*put_unlocked"drivers/gpu/drm/bochs/bochs_mm.c+2 -21 reply
2/9drm: remove deprecated "[__]drm_gem_object_[un]reference[_locked]" functionsinclude/drm/drm_gem.h+0 -501 reply
3/9drm: replace "drm_dev_unref" function with "drm_dev_put"drivers/gpu/drm/arc/arcpgu_drv.c drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c drivers/gpu/drm/etnaviv/etnaviv_drv.c +5 more+15 -1511 replies
4/9drm: remove deprecated "drm_dev_unref" functiondrivers/gpu/drm/drm_drv.c include/drm/drm_drv.h+0 -141 reply
5/9drm: replace "drm_connector_unreference" with "drm_connector_put"drivers/gpu/drm/bridge/tc358764.c+1 -11 reply
6/9drm: remove deprecated "drm_connector_[un]reference" functionsinclude/drm/drm_connector.h+0 -242 replies
7/9drm: remove deprecated "drm_framebuffer_[un]reference" functionsinclude/drm/drm_framebuffer.h+0 -241 reply
8/9drm: remove no longer needed drm-get-put coccinelle scriptscripts/coccinelle/api/drm-get-put.cocci+0 -783 replies
9/9docs: drm: remove no longer relevant TODO entryDocumentation/gpu/todo.rst+0 -171 reply

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchLinus WalleijBoris BrezillonAlexey BrodkinJulia LawallStefan AgnerLyude Paul
SeriesR-b
1/9
2/9
3/9A-b A-b A-b
4/9
5/9
6/9R-b
7/9
8/9A-b A-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v1 thread

Cover letter [PATCH 0/9] drm: remove deprecated functions

Hi all,

One of the things in the DRM TODO list ("Documentation/gpu/todo.rst") was to "switch from reference/unreference to get/put". That's what this patch series is about.

In the past year or so most of the functions had already been renamed and only a few remained, which are the ones I fix here.

In addition, now that all calls to these deprecated functions are gone, this patch also removes their implementation and the coccinelle script that takes care of them (which is no longer needed).

Anyway, this is my first patch and I'm sure I've done something wrong. Please let me know :)

Fernando Ramos (9):
drm: replace "drm_gem_object_unreference_unlocked" function with

    "*put_unlocked"

drm: remove deprecated "[__]drm_gem_object_[un]reference[_locked]"
functions
drm: replace "drm_dev_unref" function with "drm_dev_put"
drm: remove deprecated "drm_dev_unref" function
drm: replace "drm_connector_unreference" with "drm_connector_put"
drm: remove deprecated "drm_connector_[un]reference" functions
drm: remove deprecated "drm_framebuffer_[un]reference" functions
drm: remove no longer needed drm-get-put coccinelle script
docs: drm: remove no longer relevant TODO entry

 Documentation/gpu/todo.rst                   | 17 -----
 drivers/gpu/drm/arc/arcpgu_drv.c             |  4 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c |  4 +-
 drivers/gpu/drm/bochs/bochs_mm.c             |  4 +-
 drivers/gpu/drm/bridge/tc358764.c            |  2 +-
 drivers/gpu/drm/drm_drv.c                    | 13 ----
 drivers/gpu/drm/etnaviv/etnaviv_drv.c        |  4 +-
 drivers/gpu/drm/mxsfb/mxsfb_drv.c            |  4 +-
 drivers/gpu/drm/rcar-du/rcar_du_drv.c        |  2 +-
 drivers/gpu/drm/shmobile/shmob_drm_drv.c     |  4 +-
 drivers/gpu/drm/tve200/tve200_drv.c          |  4 +-
 drivers/gpu/drm/zte/zx_drm_drv.c             |  4 +-
 include/drm/drm_connector.h                  | 24 ------
 include/drm/drm_drv.h                        |  1 -
 include/drm/drm_framebuffer.h                | 24 ------
 include/drm/drm_gem.h                        | 50 -------------
 scripts/coccinelle/api/drm-get-put.cocci     | 78 --------------------
 17 files changed, 18 insertions(+), 225 deletions(-)
 delete mode 100644 scripts/coccinelle/api/drm-get-put.cocci
Signature · 1 line
2.19.1