Skip to content

virtio: sparse fixes

Michael S. Tsirkin dri-devel kvm linux-crypto linux-kbuild linux-remoteproc linux-s390 linux-scsi lkml netdev stable virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10virtio_console: drop unused config fieldsdrivers/char/virtio_console.c+7 -71 reply
2/10drm/virtio: fix endianness in primary_plane_updatedrivers/gpu/drm/virtio/virtgpu_plane.c+2 -21 reply
2/10drm/virtio: fix endianness in primary_plane_updatedrivers/gpu/drm/virtio/virtgpu_plane.c+2 -20 replies
3/10drm/virtio: fix lock context imbalancedrivers/gpu/drm/virtio/virtgpu_vq.c+3 -10 replies
3/10drm/virtio: fix lock context imbalancedrivers/gpu/drm/virtio/virtgpu_vq.c+3 -11 reply
4/10drm/virtio: annotate virtio_gpu_queue_ctrl_buffer_lockeddrivers/gpu/drm/virtio/virtgpu_vq.c+2 -00 replies
4/10drm/virtio: annotate virtio_gpu_queue_ctrl_buffer_lockeddrivers/gpu/drm/virtio/virtgpu_vq.c+2 -01 reply
5/10vhost: make interval tree static inlinedrivers/vhost/vhost.c+1 -11 reply
6/10vhost: add missing __user annotationsdrivers/vhost/vhost.c+5 -51 reply
6/10vhost: add missing __user annotationsdrivers/vhost/vhost.c+5 -50 replies
7/10vsock/virtio: add a missing __le annotationnet/vmw_vsock/virtio_transport.c+1 -12 replies
8/10vsock/virtio: mark an internal function staticnet/vmw_vsock/virtio_transport_common.c+1 -15 replies
8/10vsock/virtio: mark an internal function staticnet/vmw_vsock/virtio_transport_common.c+1 -10 replies
9/10vsock/virtio: fix src/dst cid formatnet/vmw_vsock/virtio_transport_common.c+7 -75 replies
9/10vsock/virtio: fix src/dst cid formatnet/vmw_vsock/virtio_transport_common.c+7 -70 replies
10/10virtio: enable endian checks for sparse buildsdrivers/block/Makefile drivers/char/Makefile drivers/char/hw_random/Makefile +11 more+21 -06 replies
10/10virtio: enable endian checks for sparse buildsdrivers/block/Makefile drivers/char/Makefile drivers/char/hw_random/Makefile +11 more+21 -00 replies

Reviews trailers per patch

15 of 17 patches have a Reviewed-by or Acked-by.

PatchJason WangStefan Hajnoczi
1/10R-b
2/10R-b
2/10R-b
3/10R-b
3/10R-b
4/10R-b
4/10R-b
5/10R-b
6/10
6/10
7/10R-b R-b
8/10R-b
8/10R-b
9/10R-b
9/10R-b
10/10R-b R-b
10/10R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] virtio: sparse fixes

I run latest sparse from git on virtio drivers (turns out the version I had was rather outdated). This patchset fixes a couple of bugs this uncovered, and adds some annotations to make it sparse-clean. In particular, endian-ness is often tricky, so this patchset enabled endian-ness checks for sparse builds.

Michael S. Tsirkin (10):
virtio_console: drop unused config fields drm/virtio: fix endianness in primary_plane_update drm/virtio: fix lock context imbalance drm/virtio: annotate virtio_gpu_queue_ctrl_buffer_locked
vhost: make interval tree static inline
vhost: add missing __user annotations vsock/virtio: add a missing __le annotation vsock/virtio: mark an internal function static vsock/virtio: fix src/dst cid format
virtio: enable endian checks for sparse builds

 drivers/char/virtio_console.c           | 14 +++++++-------
 drivers/gpu/drm/virtio/virtgpu_plane.c  |  4 ++--
 drivers/gpu/drm/virtio/virtgpu_vq.c     |  6 +++++-
 drivers/vhost/vhost.c                   | 12 ++++++------
 net/vmw_vsock/virtio_transport.c        |  2 +-
 net/vmw_vsock/virtio_transport_common.c | 16 ++++++++--------
 drivers/block/Makefile                  |  1 +
 drivers/char/Makefile                   |  1 +
 drivers/char/hw_random/Makefile         |  2 ++
 drivers/gpu/drm/virtio/Makefile         |  1 +
 drivers/net/Makefile                    |  3 +++
 drivers/net/caif/Makefile               |  1 +
 drivers/rpmsg/Makefile                  |  1 +
 drivers/s390/virtio/Makefile            |  2 ++
 drivers/scsi/Makefile                   |  1 +
 drivers/vhost/Makefile                  |  1 +
 drivers/virtio/Makefile                 |  3 +++
 net/9p/Makefile                         |  1 +
 net/packet/Makefile                     |  1 +
 net/vmw_vsock/Makefile                  |  2 ++
 20 files changed, 50 insertions(+), 25 deletions(-)
Signature · 1 line
MST