Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/vboxvideo: Remove unused hgsmi_cursor_position

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

authored by

Dr. David Alan Gilbert and committed by
Thomas Zimmermann
7a4c93ca 77f183d1

-39
-37
drivers/gpu/drm/vboxvideo/hgsmi_base.c
··· 181 181 182 182 return rc; 183 183 } 184 - 185 - /** 186 - * hgsmi_cursor_position - Report the guest cursor position. The host may 187 - * wish to use this information to re-position its 188 - * own cursor (though this is currently unlikely). 189 - * The current host cursor position is returned. 190 - * Return: 0 or negative errno value. 191 - * @ctx: The context containing the heap used. 192 - * @report_position: Are we reporting a position? 193 - * @x: Guest cursor X position. 194 - * @y: Guest cursor Y position. 195 - * @x_host: Host cursor X position is stored here. Optional. 196 - * @y_host: Host cursor Y position is stored here. Optional. 197 - */ 198 - int hgsmi_cursor_position(struct gen_pool *ctx, bool report_position, 199 - u32 x, u32 y, u32 *x_host, u32 *y_host) 200 - { 201 - struct vbva_cursor_position *p; 202 - 203 - p = hgsmi_buffer_alloc(ctx, sizeof(*p), HGSMI_CH_VBVA, 204 - VBVA_CURSOR_POSITION); 205 - if (!p) 206 - return -ENOMEM; 207 - 208 - p->report_position = report_position; 209 - p->x = x; 210 - p->y = y; 211 - 212 - hgsmi_buffer_submit(ctx, p); 213 - 214 - *x_host = p->x; 215 - *y_host = p->y; 216 - 217 - hgsmi_buffer_free(ctx, p); 218 - 219 - return 0; 220 - }
-2
drivers/gpu/drm/vboxvideo/vboxvideo_guest.h
··· 34 34 int hgsmi_update_pointer_shape(struct gen_pool *ctx, u32 flags, 35 35 u32 hot_x, u32 hot_y, u32 width, u32 height, 36 36 u8 *pixels, u32 len); 37 - int hgsmi_cursor_position(struct gen_pool *ctx, bool report_position, 38 - u32 x, u32 y, u32 *x_host, u32 *y_host); 39 37 40 38 bool vbva_enable(struct vbva_buf_ctx *vbva_ctx, struct gen_pool *ctx, 41 39 struct vbva_buffer *vbva, s32 screen);