Skip to content

chardev/char-mux: tweak mux bitset operations

Roman Penyaev qemu-devel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 3 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2chardev/char-mux: shift unsigned long to avoid 32-bit overflowchardev/char-mux.c+4 -20 replies
2/2chardev/char-mux: make boolean bit check instead of find_next_bit()chardev/char-mux.c+4 -70 replies

Reviews trailers per patch

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

PatchMarc-André LureauClément Mathieu--Drif
SeriesR-b R-b
1/2R-b R-b
2/2R-b R-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] chardev/char-mux: tweak mux bitset operations

Patchset tweaks bitset operations by changing a constant to unsigned long, introduces a static compile check and simplifies bitset operations. Also resolves Coverity CID 1563776.

v2..v3:
* Multiply (sizeof(d->mux_bitset) * BITS_PER_BYTE) to get number of bits (thanks Paolo Bonzini for noticing that)
* Rebase on latest master

v1..v2:
* Rebase on latest master, incorporate review tags.

Roman Penyaev (2):
chardev/char-mux: shift unsigned long to avoid 32-bit overflow chardev/char-mux: make boolean bit check instead of find_next_bit()

 chardev/char-mux.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)
Signature · 1 line
2.34.1