Skip to content

use 64-bit shift, avoid signed/unsigned mismatch

Andre Muezerie dpdk-dev 5 versions – Applied

Status from this message: Applied to dpdk-next-net-intel.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest1 patch 6 repliesApplied
  2. v41 patch 5 repliesApplied
  3. v31 patch 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v21 patch3 repliesSuperseded
v11 patch2 repliesSuperseded

Changes in v5 from the cover letter

* rebase
* use uint32_t instead of uint32, to better conform to DPDK standards
* rename variable rqID to rq_id to better conform to DPDK standards and avoid checkpatch warning
* use 2U instead of (uint32)2, which is shorter
* simplify expression in meson.build using compiler id "gcc"

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/1drivers/net: use 64-bit shift and avoid signed/unsigned mismatchdrivers/net/intel/i40e/i40e_ethdev.c drivers/net/intel/iavf/iavf_ethdev.c drivers/net/intel/iavf/iavf_rxtx.c +6 more+32 -250 replies

Reviews trailers per patch

The patch has no Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBruce Richardson
SeriesA-b
1/1

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

Read the v5 thread

Cover letter [PATCH v5 0/1] use 64-bit shift, avoid signed/unsigned mismatch

This patch avoids warnings like the ones below emitted by MSVC:

1)
../drivers/net/ice/base/ice_flg_rd.c(71): warning C4334: '<<':
result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)

2)
../drivers/net/ice/ice_dcf_sched.c(177): warning C4018: '>=':
signed/unsigned mismatch

The fix for (1) is to use 64-bit shifting when appropriate (according to what the result is used for).

The fix for (2) is to explicitly cast the variables used in the comparison.

v5:
* rebase
* use uint32_t instead of uint32, to better conform to DPDK standards
* rename variable rqID to rq_id to better conform to DPDK standards and avoid checkpatch warning
* use 2U instead of (uint32)2, which is shorter
* simplify expression in meson.build using compiler id "gcc"

Andre Muezerie (1):
drivers/net: use 64-bit shift and avoid signed/unsigned mismatch

 drivers/net/intel/i40e/i40e_ethdev.c   | 22 +++++++++++-----------
 drivers/net/intel/iavf/iavf_ethdev.c   |  2 +-
 drivers/net/intel/iavf/iavf_rxtx.c     |  2 +-
 drivers/net/intel/iavf/iavf_vchnl.c    |  2 +-
 drivers/net/intel/ice/base/meson.build | 19 +++++++++++++------
 drivers/net/intel/ice/ice_dcf_sched.c  |  2 +-
 drivers/net/intel/ice/ice_ethdev.c     |  4 ++--
 drivers/net/intel/ice/ice_rxtx.c       |  2 +-
 drivers/net/intel/ixgbe/ixgbe_ethdev.c |  2 +-
 9 files changed, 32 insertions(+), 25 deletions(-)

--
2.47.2.vfs.0.1