drm/virtio: static-ify virtio_gpu_framebuffer_init
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 19 Dec 2019 00:57:29 +0000 (16:57 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 19 Dec 2019 06:13:45 +0000 (07:13 +0100)
Not used anywhere else.

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

index e622485ae82676436937a5226a0c71e0b4040d73..c76d69fecfeb57935d4296128583403d0b4a99c4 100644 (file)
@@ -59,7 +59,7 @@ static const struct drm_framebuffer_funcs virtio_gpu_fb_funcs = {
        .dirty = drm_atomic_helper_dirtyfb,
 };
 
-int
+static int
 virtio_gpu_framebuffer_init(struct drm_device *dev,
                            struct virtio_gpu_framebuffer *vgfb,
                            const struct drm_mode_fb_cmd2 *mode_cmd,
index 349c1dea61c7e0bda05946912cdf1587fb64e705..cf09e4af2fc58a191c50dc48f41e7fcdc0c50a35 100644 (file)
@@ -342,10 +342,6 @@ void virtio_gpu_disable_notify(struct virtio_gpu_device *vgdev);
 void virtio_gpu_enable_notify(struct virtio_gpu_device *vgdev);
 
 /* virtio_gpu_display.c */
-int virtio_gpu_framebuffer_init(struct drm_device *dev,
-                               struct virtio_gpu_framebuffer *vgfb,
-                               const struct drm_mode_fb_cmd2 *mode_cmd,
-                               struct drm_gem_object *obj);
 void virtio_gpu_modeset_init(struct virtio_gpu_device *vgdev);
 void virtio_gpu_modeset_fini(struct virtio_gpu_device *vgdev);