Skip to content

util/fifo8: Rework fifo8_pop_buf()

Philippe Mathieu-Daudé qemu-arm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 16 repliesIn review
  2. v13 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7chardev/char-fe: Document returned value on errorinclude/chardev/char-fe.h+3 -01 reply
2/7util/fifo8: Fix styleinclude/qemu/fifo8.h+6 -162 replies
3/7util/fifo8: Use fifo8_reset() in fifo8_create()util/fifo8.c+7 -81 reply
4/7util/fifo8: Rename fifo8_peek_buf() -> fifo8_peek_constbuf()hw/scsi/esp.c include/qemu/fifo8.h util/fifo8.c+4 -42 replies
5/7util/fifo8: Rename fifo8_pop_buf() -> fifo8_pop_constbuf()chardev/msmouse.c hw/char/goldfish_tty.c hw/net/allwinner_emac.c +5 more+11 -112 replies
6/7util/fifo8: Expose fifo8_pop_buf()hw/scsi/esp.c include/qemu/fifo8.h util/fifo8.c+46 -334 replies
7/7util/fifo8: Introduce fifo8_discard()hw/scsi/esp.c include/qemu/fifo8.h util/fifo8.c+15 -13 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchMark Cave-AylandPierrick Bouvier
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b R-b
7/7R-b R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/7] util/fifo8: Rework fifo8_pop_buf()

Rename current fifo8_pop_buf() as fifo8_pop_constbuf() and expose ESP's fifo8_pop_buf() which takes care of wrapped FIFO buffer.

Supersedes: <[email protected]>
util/fifo8: Introduce fifo8_change_capacity()

Philippe Mathieu-Daudé (7):
chardev/char-fe: Document returned value on error util/fifo8: Fix style
util/fifo8: Use fifo8_reset() in fifo8_create() util/fifo8: Rename fifo8_peek_buf() -> fifo8_peek_constbuf() util/fifo8: Rename fifo8_pop_buf() -> fifo8_pop_constbuf() util/fifo8: Expose fifo8_pop_buf()
util/fifo8: Introduce fifo8_discard()

 include/chardev/char-fe.h |  3 +++
 include/qemu/fifo8.h      | 50 ++++++++++++++++++++++++---------------
 chardev/msmouse.c         |  2 +-
 hw/char/goldfish_tty.c    |  4 ++--
 hw/net/allwinner_emac.c   |  2 +-
 hw/scsi/esp.c             | 38 ++++-------------------------
 ui/console-vc.c           |  2 +-
 ui/gtk.c                  |  2 +-
 util/fifo8.c              | 48 +++++++++++++++++++++++++++++++------
 9 files changed, 85 insertions(+), 66 deletions(-)
Signature · 1 line
2.41.0