use 64-bit shift, avoid signed/unsigned mismatch
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
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 1 patch | 3 replies | Superseded | |
| v1 | 1 patch | 2 replies | Superseded |
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | drivers/net: use 64-bit shift and avoid signed/unsigned mismatchdrivers/ drivers/ drivers/ +6 more | +32 | 0 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.
| Patch | Bruce Richardson |
|---|---|
| Series | A-b |
| 1/1 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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