]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/virtio: move to_virtio_fence inside virtgpu_fence
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 19 Dec 2019 00:57:32 +0000 (16:57 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Dec 2019 06:13:46 +0000 (07:13 +0100)
That's the only file that uses it.

Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20191219005733.18960-5-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_fence.c

index 578d5e42946eaace50126aa3aae6457a56d56394..b16e04bd67b71a2262a572afb2cac0ce19e4b2aa 100644 (file)
@@ -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;
index 5466aab7d39ad2c134aa3ea0e47f0f36f67857b9..5b2a4146c5bd617c80c8ff2c7c6fcabf53674741 100644 (file)
@@ -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";