Skip to content

virtio_ring: Clean up code for virtio ring and pci

Feng Liu via Virtualization virtualization 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/23 patches 12 repliesIn review
  2. v2 posting 1/23 patches 12 repliesSuperseded
  3. v13 patches 26 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3virtio_ring: Allow non power of 2 sizes for packed virtqueuedrivers/virtio/virtio_pci_modern.c+0 -53 replies
2/3virtio_ring: Avoid using inline for small functionsdrivers/virtio/virtio_ring.c+7 -73 replies
3/3virtio_ring: Use const to annotate read-only pointer paramsdrivers/virtio/virtio_ring.c include/linux/virtio.h+25 -255 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJiri PirkoJason WangDavid EdmondsonXuan Zhuo
SeriesR-b
1/3R-b A-b R-b
2/3R-b A-b R-b
3/3R-b A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] virtio_ring: Clean up code for virtio ring and pci

This patch series performs a clean up of the code in virtio_ring and virtio_pci, modifying it to conform with the Linux kernel coding style guidance [1]. The modifications ensure the code easy to read and understand. This small series does few short cleanups in the code.

Patch-1 Allow non power of 2 sizes for packed virtqueues. Patch-2 Avoid using inline for small functions. Patch-3 Use const to annotate read-only pointer params.

[1]
https://www.kernel.org/doc/html/v6.2-rc3/process/coding-style.html#the-inline-disease

All of the patches have been verified based on the kernel code
commit 81ff855485a3 ("Merge tag 'i2c-for-6.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux")

Feng Liu (3):
virtio_ring: Allow non power of 2 sizes for packed virtqueue
virtio_ring: Avoid using inline for small functions
virtio_ring: Use const to annotate read-only pointer params

 drivers/virtio/virtio_pci_modern.c |  5 ----
 drivers/virtio/virtio_ring.c       | 48 +++++++++++++++---------------
 include/linux/virtio.h             | 14 ++++-----
 3 files changed, 31 insertions(+), 36 deletions(-)
Signature · 6 lines
2.34.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization