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

Configure Feed

Select the types of activity you want to include in your feed.

virtio_ring: switch to use unsigned int for virtqueue_poll_packed()

Switch to use unsigned int for virtqueue_poll_packed() to match
virtqueue_poll() and virtqueue_poll_split() and to ease the
abstraction of the virtqueue ops.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20251230064649.55597-13-jasowang@redhat.com>

authored by

Jason Wang and committed by
Michael S. Tsirkin
eff8b47d f2ad9d6b

+2 -1
+2 -1
drivers/virtio/virtio_ring.c
··· 1698 1698 return avail == used && used == used_wrap_counter; 1699 1699 } 1700 1700 1701 - static bool virtqueue_poll_packed(const struct vring_virtqueue *vq, u16 off_wrap) 1701 + static bool virtqueue_poll_packed(const struct vring_virtqueue *vq, 1702 + unsigned int off_wrap) 1702 1703 { 1703 1704 bool wrap_counter; 1704 1705 u16 used_idx;