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:
committed by
Marge Bot
parent
9ca71b52aa
commit
daad392d5c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user