drm/vboxvideo: Remove unused hgsmi_cursor_position
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 15 Dec 2024 22:00:14 +0000 (22:00 +0000)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 28 Feb 2025 08:05:10 +0000 (09:05 +0100)
hgsmi_cursor_position() has been unused since 2018's
commit 35f3288c453e ("staging: vboxvideo: Atomic phase 1: convert cursor to
universal plane")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20241215220014.452537-1-linux@treblig.org
drivers/gpu/drm/vboxvideo/hgsmi_base.c
drivers/gpu/drm/vboxvideo/vboxvideo_guest.h

index 87dccaecc3e57d1c4c6c1bcc4988fbd590f1d8c5..db994aeaa0f9187ad82407c24280d47cf6f4ba01 100644 (file)
@@ -181,40 +181,3 @@ int hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags,
 
        return rc;
 }
-
-/**
- * hgsmi_cursor_position - Report the guest cursor position.  The host may
- *                         wish to use this information to re-position its
- *                         own cursor (though this is currently unlikely).
- *                         The current host cursor position is returned.
- * Return: 0 or negative errno value.
- * @ctx:              The context containing the heap used.
- * @report_position:  Are we reporting a position?
- * @x:                Guest cursor X position.
- * @y:                Guest cursor Y position.
- * @x_host:           Host cursor X position is stored here.  Optional.
- * @y_host:           Host cursor Y position is stored here.  Optional.
- */
-int hgsmi_cursor_position(struct gen_pool *ctx, bool report_position,
-                         u32 x, u32 y, u32 *x_host, u32 *y_host)
-{
-       struct vbva_cursor_position *p;
-
-       p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA,
-                              VBVA_CURSOR_POSITION);
-       if (!p)
-               return -ENOMEM;
-
-       p->report_position = report_position;
-       p->x = x;
-       p->y = y;
-
-       hgsmi_buffer_submit(ctx, p);
-
-       *x_host = p->x;
-       *y_host = p->y;
-
-       hgsmi_buffer_free(ctx, p);
-
-       return 0;
-}
index 55fcee3a6470d79340fa9878d8236930617db1f2..643c4448bdcbd881ec59654884e373cadded2795 100644 (file)
@@ -34,8 +34,6 @@ int hgsmi_query_conf(struct gen_pool *ctx, u32 index, u32 *value_ret);
 int hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags,
                               u32 hot_x, u32 hot_y, u32 width, u32 height,
                               u8 *pixels, u32 len);
-int hgsmi_cursor_position(struct gen_pool *ctx, bool report_position,
-                         u32 x, u32 y, u32 *x_host, u32 *y_host);
 
 bool vbva_enable(struct vbva_buf_ctx *vbva_ctx, struct gen_pool *ctx,
                 struct vbva_buffer *vbva, s32 screen);