[PATCH v2 0/3] use static_assertion for build errors
Stephen Hemminger
stephen at networkplumber.org
Mon Nov 13 18:06:02 CET 2023
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(-)
--
2.39.2
More information about the dev
mailing list