DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] remove use of non-standard array range initialization
@ 2024-12-26 20:11 Andre Muezerie
  2024-12-26 20:11 ` [PATCH 1/2] app/test: " Andre Muezerie
  2024-12-26 20:11 ` [PATCH 2/2] drivers/net: " Andre Muezerie
  0 siblings, 2 replies; 3+ messages in thread
From: Andre Muezerie @ 2024-12-26 20:11 UTC (permalink / raw)
  Cc: dev, Andre Muezerie

Array range initialization is non-standard and is not provided by
all compilers. MSVC does not implement it and ends up emitting
errors like the one below:

drivers/net/r8169/r8169_phy.c(380):
    error C2143: syntax error: missing ':' before '...'
case CFG_METHOD_48 ... CFG_METHOD_57:

The fix is to explicitly initialize each element in the range.

Andre Muezerie (2):
  app/test: remove use of non-standard array range initialization
  drivers/net: remove use of non-standard array range initialization

 app/test/test_cryptodev_zuc_test_vectors.h | 156 ++++++-
 drivers/net/octeon_ep/otx_ep_mbox.c        |  24 +-
 drivers/net/r8169/base/rtl8125a_mcu.c      |   8 +-
 drivers/net/r8169/base/rtl8126a.c          |   5 +-
 drivers/net/r8169/r8169_ethdev.c           |  34 +-
 drivers/net/r8169/r8169_hw.c               | 447 ++++++++++++++++++---
 drivers/net/r8169/r8169_phy.c              | 163 +++++++-
 drivers/net/r8169/r8169_rxtx.c             |  25 +-
 8 files changed, 770 insertions(+), 92 deletions(-)

--
2.47.0.vfs.0.3


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-26 20:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-26 20:11 [PATCH 0/2] remove use of non-standard array range initialization Andre Muezerie
2024-12-26 20:11 ` [PATCH 1/2] app/test: " Andre Muezerie
2024-12-26 20:11 ` [PATCH 2/2] drivers/net: " Andre Muezerie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).