mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
drm/virtio: annotate virtio_gpu_queue_ctrl_buffer_locked
virtio_gpu_queue_ctrl_buffer_locked is called with ctrlq.qlock taken, it releases and acquires this lock. This causes a sparse warning. Add appropriate annotations for sparse context checking. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
f862e60f8d
commit
3373755a41
1 changed files with 2 additions and 0 deletions
|
@ -297,6 +297,8 @@ void virtio_gpu_dequeue_cursor_func(struct work_struct *work)
|
|||
|
||||
static int virtio_gpu_queue_ctrl_buffer_locked(struct virtio_gpu_device *vgdev,
|
||||
struct virtio_gpu_vbuffer *vbuf)
|
||||
__releases(&vgdev->ctrlq.qlock)
|
||||
__acquires(&vgdev->ctrlq.qlock)
|
||||
{
|
||||
struct virtqueue *vq = vgdev->ctrlq.vq;
|
||||
struct scatterlist *sgs[3], vcmd, vout, vresp;
|
||||
|
|
Loading…
Add table
Reference in a new issue