virtio/vpipe: Correct vdrm_vpipe_connect() definition

The vdrm_vpipe_connect() prototype defined in vdrm.c doesn't match
vdrm_vpipe_connect() defined in vdrm_vpipe.c. This leads to a compilation
warning about the wrong proto when Mesa linked with enabled LTO. Fix the
vdrm_vpipe_connect() definition.

Fixes: bf0e3d6274 ("virtio/vdrm: Add vtest backend")
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34819>
This commit is contained in:
Dmitry Osipenko 2025-05-05 17:42:56 +03:00 committed by Marge Bot
parent 9ca71b52aa
commit daad392d5c

View file

@ -774,10 +774,10 @@ init_shmem(struct vpipe_device *vtdev)
return 0;
}
struct vdrm_device * vdrm_vpipe_connect(int fd, uint32_t context_type);
struct vdrm_device * vdrm_vpipe_connect(uint32_t context_type);
struct vdrm_device *
vdrm_vpipe_connect(int fd, uint32_t context_type)
vdrm_vpipe_connect(uint32_t context_type)
{
struct vpipe_device *vtdev;
struct vdrm_device *vdev = NULL;