All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gurchetan Singh <gurchetansingh@chromium.org>
To: dri-devel@lists.freedesktop.org
Cc: Gurchetan Singh <gurchetansingh@chromium.org>, kraxel@redhat.com
Subject: [PATCH 6/9] drm/virtio: move to_virtio_fence inside virtgpu_fence
Date: Tue, 17 Dec 2019 16:59:26 -0800	[thread overview]
Message-ID: <20191218005929.6709-7-gurchetansingh@chromium.org> (raw)
In-Reply-To: <20191218005929.6709-1-gurchetansingh@chromium.org>

That's the only file that uses it.

Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
---
 drivers/gpu/drm/virtio/virtgpu_drv.h   | 2 --
 drivers/gpu/drm/virtio/virtgpu_fence.c | 3 +++
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h
index 77f446608ca9..4ec80563d1ca 100644
--- a/drivers/gpu/drm/virtio/virtgpu_drv.h
+++ b/drivers/gpu/drm/virtio/virtgpu_drv.h
@@ -103,8 +103,6 @@ struct virtio_gpu_fence {
 	struct virtio_gpu_fence_driver *drv;
 	struct list_head node;
 };
-#define to_virtio_fence(x) \
-	container_of(x, struct virtio_gpu_fence, f)
 
 struct virtio_gpu_vbuffer {
 	char *buf;
diff --git a/drivers/gpu/drm/virtio/virtgpu_fence.c b/drivers/gpu/drm/virtio/virtgpu_fence.c
index 5466aab7d39a..5b2a4146c5bd 100644
--- a/drivers/gpu/drm/virtio/virtgpu_fence.c
+++ b/drivers/gpu/drm/virtio/virtgpu_fence.c
@@ -27,6 +27,9 @@
 
 #include "virtgpu_drv.h"
 
+#define to_virtio_fence(x) \
+	container_of(x, struct virtio_gpu_fence, f)
+
 static const char *virtio_get_driver_name(struct dma_fence *f)
 {
 	return "virtio_gpu";
-- 
2.24.1.735.g03f4e72817-goog

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

  parent reply	other threads:[~2019-12-18  1:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-18  0:59 [PATCH 0/9] *** virtgpu cleanups *** Gurchetan Singh
2019-12-18  0:59 ` [PATCH 1/9] drm/virtio: static-ify virtio_fence_signaled Gurchetan Singh
2019-12-18  0:59 ` [PATCH 2/9] drm/virtio: static-ify virtio_gpu_framebuffer_init Gurchetan Singh
2019-12-18  0:59 ` [PATCH 3/9] drm/virtio: get rid of drm_encoder_to_virtio_gpu_output Gurchetan Singh
2019-12-18  0:59 ` [PATCH 4/9] drm/virtio: simplify getting fake offset Gurchetan Singh
2019-12-18  0:59 ` [PATCH 5/9] drm/virtio: remove virtgpu_gem_prime_import_sg_table Gurchetan Singh
2019-12-18  0:59 ` Gurchetan Singh [this message]
2019-12-18  0:59 ` [PATCH 7/9] drm/virtio: move drm_connector_to_virtio_gpu_output to virtgpu_display Gurchetan Singh
2019-12-18  0:59 ` [PATCH 8/9] drm/virtio: split out vq functions from virtgpu_drv.h Gurchetan Singh
2019-12-18  0:59 ` [PATCH 9/9] drm/virtio: split out gem " Gurchetan Singh
2019-12-18  8:31 ` [PATCH 0/9] *** virtgpu cleanups *** Gerd Hoffmann

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=20191218005929.6709-7-gurchetansingh@chromium.org \
    --to=gurchetansingh@chromium.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kraxel@redhat.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.