All of lore.kernel.org
 help / color / mirror / Atom feed
From: Aishwarya Pant <aishpant@gmail.com>
To: Jyri Sarha <jsarha@ti.com>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	David Airlie <airlied@linux.ie>,
	dri-devel@lists.freedesktop.org,
	Daniel Vetter <daniel.vetter@intel.com>,
	Jani Nikula <jani.nikula@linux.intel.com>,
	Sean Paul <seanpaul@chromium.org>
Cc: outreachy-kernel@googlegroups.com
Subject: [PATCH v2 0/2] drm/tilcdc: replace reference/unreference with get/put
Date: Tue, 26 Sep 2017 13:46:28 +0530	[thread overview]
Message-ID: <cover.1506413698.git.aishpant@gmail.com> (raw)

This patchset introduces drm_dev_get() and drm_dev_put() functions that are
intented to be replacements for drm_dev_{ref/unref}.

Then all usages of ref/reference and unref/unreference suffixes are replaced by
get/put reference count functions in tilcdc. The following cocci script was used
to make the tilcdc patch:

@@
expression ex;
@@

(
-drm_framebuffer_unreference(ex);
+drm_framebuffer_put(ex);
|
-drm_dev_unref(ex);
+drm_dev_put(ex);
|
-drm_framebuffer_reference(ex);
+drm_framebuffer_get(ex);
)

Changes in v2
- Drop drm_dev_ref after replacing all its usages
- Update the drm subsystem wide cocci script drm-get-put with the new helper for
  drm_dev_unref to drm_dev_get conversion

Aishwarya Pant (2):
  drm: introduce drm_dev_{get/put} functions
  drm/tilcdc: replace reference/unreference() with get/put

 drivers/gpu/drm/drm_drv.c                | 51 ++++++++++++++++++++------------
 drivers/gpu/drm/drm_prime.c              |  2 +-
 drivers/gpu/drm/tilcdc/tilcdc_crtc.c     |  6 ++--
 drivers/gpu/drm/tilcdc/tilcdc_drv.c      |  2 +-
 include/drm/drm_drv.h                    |  5 ++--
 scripts/coccinelle/api/drm-get-put.cocci |  5 ++++
 6 files changed, 45 insertions(+), 26 deletions(-)

-- 
2.7.4



WARNING: multiple messages have this Message-ID (diff)
From: Aishwarya Pant <aishpant@gmail.com>
To: Jyri Sarha <jsarha@ti.com>,
	Tomi Valkeinen <tomi.valkeinen@ti.com>,
	David Airlie <airlied@linux.ie>,
	dri-devel@lists.freedesktop.org,
	Daniel Vetter <daniel.vetter@intel.com>,
	Jani Nikula <jani.nikula@linux.intel.com>,
	Sean Paul <seanpaul@chromium.org>
Cc: outreachy-kernel@googlegroups.com
Subject: [PATCH v2 0/2] drm/tilcdc: replace reference/unreference with get/put
Date: Tue, 26 Sep 2017 13:46:28 +0530	[thread overview]
Message-ID: <cover.1506413698.git.aishpant@gmail.com> (raw)

This patchset introduces drm_dev_get() and drm_dev_put() functions that are
intented to be replacements for drm_dev_{ref/unref}.

Then all usages of ref/reference and unref/unreference suffixes are replaced by
get/put reference count functions in tilcdc. The following cocci script was used
to make the tilcdc patch:

@@
expression ex;
@@

(
-drm_framebuffer_unreference(ex);
+drm_framebuffer_put(ex);
|
-drm_dev_unref(ex);
+drm_dev_put(ex);
|
-drm_framebuffer_reference(ex);
+drm_framebuffer_get(ex);
)

Changes in v2
- Drop drm_dev_ref after replacing all its usages
- Update the drm subsystem wide cocci script drm-get-put with the new helper for
  drm_dev_unref to drm_dev_get conversion

Aishwarya Pant (2):
  drm: introduce drm_dev_{get/put} functions
  drm/tilcdc: replace reference/unreference() with get/put

 drivers/gpu/drm/drm_drv.c                | 51 ++++++++++++++++++++------------
 drivers/gpu/drm/drm_prime.c              |  2 +-
 drivers/gpu/drm/tilcdc/tilcdc_crtc.c     |  6 ++--
 drivers/gpu/drm/tilcdc/tilcdc_drv.c      |  2 +-
 include/drm/drm_drv.h                    |  5 ++--
 scripts/coccinelle/api/drm-get-put.cocci |  5 ++++
 6 files changed, 45 insertions(+), 26 deletions(-)

-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2017-09-26  8:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-26  8:16 Aishwarya Pant [this message]
2017-09-26  8:16 ` [PATCH v2 0/2] drm/tilcdc: replace reference/unreference with get/put Aishwarya Pant
2017-09-26  8:28 ` [PATCH v2 1/2] drm: introduce drm_dev_{get/put} functions Aishwarya Pant
2017-09-26  8:28   ` Aishwarya Pant
2017-09-26  8:30 ` [PATCH v2 2/2] drm/tilcdc: replace reference/unreference() with get/put Aishwarya Pant
2017-09-26  8:30   ` Aishwarya Pant
2017-09-26  9:18   ` Jyri Sarha
2017-09-26  9:18     ` Jyri Sarha
2017-09-26 11:13     ` Daniel Vetter
2017-09-26 11:13       ` Daniel Vetter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1506413698.git.aishpant@gmail.com \
    --to=aishpant@gmail.com \
    --cc=airlied@linux.ie \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=jsarha@ti.com \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=seanpaul@chromium.org \
    --cc=tomi.valkeinen@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.