Skip to content

add diagnostics macros to make code portable

Andre Muezerie dpdk-dev 16 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v16 Latest3 patches 10 repliesIn review
  2. v153 patches 5 repliesSuperseded
  3. v143 patches 0 repliesSuperseded
Earlier versions · 13
VersionPostedPatchesRepliesStatus
v133 patches6 repliesSuperseded
v123 patches2 repliesSuperseded
v113 patches7 repliesSuperseded
v103 patches0 repliesSuperseded
v93 patches0 repliesSuperseded
v83 patches0 repliesSuperseded
v73 patches0 repliesSuperseded
v63 patches0 repliesSuperseded
v53 patches0 repliesSuperseded
v43 patches1 replySuperseded
v33 patches0 repliesSuperseded
v23 patches0 repliesSuperseded
v13 patches2 repliesSuperseded

Changes in v16 from the cover letter

* Updated comment for RTE_CAST_PTR.

Patches in v16 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3eal: add diagnostics macros to make code portablelib/eal/include/rte_common.h+48 -01 reply
2/3drivers/common: add diagnostics macros to make code portabledrivers/common/idpf/idpf_common_rxtx_avx512.c+34 -381 reply
3/3drivers/net: add diagnostics macros to make code portabledrivers/net/axgbe/axgbe_rxtx.h drivers/net/cpfl/cpfl_rxtx_vec_common.h drivers/net/dpaa2/dpaa2_rxtx.c +32 more+316 -4455 replies

Reviews trailers per patch

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

PatchMorten Brørup
1/3R-b
2/3A-b
3/3A-b

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

Read the v16 thread

Cover letter [PATCH v16 0/3] add diagnostics macros to make code portable

v16:
* Updated comment for RTE_CAST_PTR.

v15:
* Fixed a comment in rte_common.h to make Doxygen happy.
* Fixed a typo (extra comma).
* Added missing RTE_PTR_UNQUAL needed for ARM64.

v14:
* Renamed RTE_PTR_DROP_QUALIFIERS into RTE_PTR_UNQUAL to more resemble C23 typeof_unqual.
* Added macro RTE_CAST_PTR to make the cast more readable when removing a type qualifier from a pointer.

v13:
* Renamed RTE_IGNORE_CAST_QUAL into RTE_PTR_DROP_QUALIFIERS.
* Added (void *) cast to RTE_PTR_DROP_QUALIFIERS to avoid the need for casting the result in most places where the macro is used.

v12:
* Added macro RTE_IGNORE_CAST_QUAL and used it as a more compact and readable form to suppress warnings where a cast is used to remove a type qualifier.

v11:
* Added __rte_diagnostic_ignored_wcast_qual to a few more places where it was needed.

v10:
* Added __rte_diagnostic_ignored_wcast_qual to a few more places where it was needed.

v9:
* Added __rte_diagnostic_ignored_wcast_qual to a few more places where it was needed.

v8:
* Added __rte_diagnostic_ignored_wcast_qual to a few more places where it was needed.

v7:
* Added __rte_diagnostic_ignored_wcast_qual to a few more places where it was needed.

v6:
* Added __rte_diagnostic_ignored_wcast_qual to a few more places where it was needed.

v5:
* Added __rte_diagnostic_ignored_wcast_qual to a few more places where it was needed.

v4:
* Added __rte_diagnostic_ignored_wcast_qual to a few more places where it was needed.

v3:
* Added __rte_diagnostic_ignored_wcast_qual to a few more places where it was needed.

v2:
* Removed __rte_diagnostic_ignored_wstrict_aliasing (introduced in v1).
* Removed the pragmas from many files where they were not needed.
* In the files where the pragmas were indeed needed, reduced the scope during which they are active, reducing the chance that unforeseen issues are hidden due to warning suppression.

Andre Muezerie (3):
eal: add diagnostics macros to make code portable drivers/common: add diagnostics macros to make code portable drivers/net: add diagnostics macros to make code portable

 drivers/common/idpf/idpf_common_rxtx_avx512.c | 72 +++++++++---------
 drivers/net/axgbe/axgbe_rxtx.h                |  9 ---
 drivers/net/cpfl/cpfl_rxtx_vec_common.h       |  4 -
 drivers/net/dpaa2/dpaa2_rxtx.c                | 15 +---
 drivers/net/fm10k/fm10k_rxtx_vec.c            | 21 ++----
 drivers/net/hns3/hns3_rxtx_vec_neon.h         |  6 +-
 .../net/i40e/i40e_recycle_mbufs_vec_common.c  |  2 -
 drivers/net/i40e/i40e_rxtx_common_avx.h       | 22 +++---
 drivers/net/i40e/i40e_rxtx_vec_altivec.c      | 18 ++---
 drivers/net/i40e/i40e_rxtx_vec_avx2.c         | 30 ++++----
 drivers/net/i40e/i40e_rxtx_vec_avx512.c       | 28 +++----
 drivers/net/i40e/i40e_rxtx_vec_common.h       |  4 -
 drivers/net/i40e/i40e_rxtx_vec_neon.c         | 35 ++++-----
 drivers/net/i40e/i40e_rxtx_vec_sse.c          | 28 +++----
 drivers/net/iavf/iavf_rxtx_vec_avx2.c         | 60 +++++++--------
 drivers/net/iavf/iavf_rxtx_vec_avx512.c       | 62 ++++++++--------
 drivers/net/iavf/iavf_rxtx_vec_common.h       | 10 +--
 drivers/net/iavf/iavf_rxtx_vec_neon.c         | 22 +++---
 drivers/net/iavf/iavf_rxtx_vec_sse.c          | 38 +++++-----
 drivers/net/ice/ice_rxtx_common_avx.h         | 18 ++---
 drivers/net/ice/ice_rxtx_vec_avx2.c           | 74 +++++++++----------
 drivers/net/ice/ice_rxtx_vec_avx512.c         | 64 +++++++---------
 drivers/net/ice/ice_rxtx_vec_common.h         |  4 -
 drivers/net/ice/ice_rxtx_vec_sse.c            | 28 +++----
 drivers/net/idpf/idpf_rxtx_vec_common.h       |  4 -
 .../ixgbe/ixgbe_recycle_mbufs_vec_common.c    |  2 -
 drivers/net/ixgbe/ixgbe_rxtx_vec_neon.c       | 18 ++---
 drivers/net/ixgbe/ixgbe_rxtx_vec_sse.c        | 20 ++---
 drivers/net/mlx5/mlx5_flow.c                  |  5 +-
 drivers/net/mlx5/mlx5_rxtx_vec_altivec.h      |  5 --
 drivers/net/mlx5/mlx5_rxtx_vec_neon.h         | 18 ++---
 drivers/net/mlx5/mlx5_rxtx_vec_sse.h          | 61 ++++++++-------
 drivers/net/ngbe/ngbe_rxtx_vec_neon.c         |  8 +-
 drivers/net/tap/tap_flow.c                    |  6 +-
 drivers/net/txgbe/txgbe_rxtx_vec_neon.c       |  8 +-
 drivers/net/virtio/virtio_rxtx_simple.c       |  4 -
 lib/eal/include/rte_common.h                  | 48 ++++++++++++
 37 files changed, 398 insertions(+), 483 deletions(-)

--
2.47.2.vfs.0.1