From: Jason Wang Date: Tue, 30 Dec 2025 06:46:42 +0000 (+0800) Subject: virtio_ring: switch to use unsigned int for virtqueue_poll_packed() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eff8b47d2832150f96ab706562cef5a754a0d625;p=thirdparty%2Flinux.git 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 Signed-off-by: Michael S. Tsirkin Message-Id: <20251230064649.55597-13-jasowang@redhat.com> --- diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index 09ebcb4e17e24..1832ea7982a66 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -1698,7 +1698,8 @@ static inline bool is_used_desc_packed(const struct vring_virtqueue *vq, return avail == used && used == used_wrap_counter; } -static bool virtqueue_poll_packed(const struct vring_virtqueue *vq, u16 off_wrap) +static bool virtqueue_poll_packed(const struct vring_virtqueue *vq, + unsigned int off_wrap) { bool wrap_counter; u16 used_idx;