[v2,0/3] use static_assertion for build errors

Message ID 20231113170605.408281-1-stephen@networkplumber.org (mailing list archive)
Headers
Series use static_assertion for build errors |

Message

Stephen Hemminger Nov. 13, 2023, 5:06 p.m. UTC
  This series fixes a couple places where expressions that could not
be evaluated as constant early in compiler passes were used. And then
converts RTE_BUILD_BUG_ON() with static_assert.

Stephen Hemminger (3):
  event/opdl: fix non-constant compile time assertion
  net/sfc: fix non-constant expression inr RTE_BUILD_BUG_ON()
  eal: replace out of bounds VLA with static_assert

 drivers/event/opdl/opdl_ring.c | 5 ++++-
 drivers/net/sfc/sfc_ef100_tx.c | 7 +++++--
 lib/eal/include/rte_common.h   | 3 ++-
 3 files changed, 11 insertions(+), 4 deletions(-)