DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 00/10] Enable DPDK core build with gcc 7
@ 2017-05-04 15:38 Bruce Richardson
  2017-05-04 15:38 ` [dpdk-dev] [PATCH 01/10] mk: adjust gcc flags for new gcc 7 warnings Bruce Richardson
                   ` (10 more replies)
  0 siblings, 11 replies; 20+ messages in thread
From: Bruce Richardson @ 2017-05-04 15:38 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson

Since GCC 7 is now yesterday's news :-), I figured we should try and make
DPDK compile successfully with that new version. The main difficulties are
because of new warnings being triggered.

* New warnings for fall-though in case statements
* New warnings for possible truncation using snprintf
* New warnings about uninitialized values.

This set of patches fixes or works around those new issues, fixing a couple of
bugs in the process, so that DPDK can compile using gcc 7.

NOTE: this set only covers the basic DPDK libs, apps and tests. It does not
cover the example apps, which still have issues.

Bruce Richardson (10):
  mk: adjust gcc flags for new gcc 7 warnings
  drivers/net: disable new gcc 7 warnings for base code
  net/bnx2x: fix warnings about switch fall-through
  net/ixgbe: fix gcc 7 warning for switch fallthrough
  net/vmxnet3: fix compile error with gcc 7
  lib: fix gcc 7 warnings for switch fall-through
  net: fix missing break inside conditional compile block
  app/testpmd: document explicit switch fall-through
  test/test: fix missing break in switch
  test/test: fix gcc 7 compiler error

 app/test-pmd/cmdline.c                 | 2 ++
 drivers/net/bnx2x/ecore_sp.c           | 2 +-
 drivers/net/bnx2x/elink.c              | 3 +++
 drivers/net/e1000/Makefile             | 3 +++
 drivers/net/fm10k/Makefile             | 3 +++
 drivers/net/ixgbe/Makefile             | 3 +++
 drivers/net/ixgbe/ixgbe_fdir.c         | 2 ++
 drivers/net/qede/Makefile              | 3 +++
 drivers/net/vmxnet3/vmxnet3_ethdev.c   | 2 +-
 lib/librte_cmdline/cmdline_parse_num.c | 4 ++--
 lib/librte_hash/rte_hash_crc.h         | 6 ++++++
 lib/librte_mbuf/rte_mbuf.h             | 4 ++++
 lib/librte_net/rte_net_crc.c           | 2 +-
 mk/toolchain/gcc/rte.vars.mk           | 7 +++++++
 test/test/test_cmdline_num.c           | 1 +
 test/test/test_eventdev_sw.c           | 2 +-
 16 files changed, 43 insertions(+), 6 deletions(-)

-- 
2.9.3

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

end of thread, other threads:[~2017-05-05 16:38 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-04 15:38 [dpdk-dev] [PATCH 00/10] Enable DPDK core build with gcc 7 Bruce Richardson
2017-05-04 15:38 ` [dpdk-dev] [PATCH 01/10] mk: adjust gcc flags for new gcc 7 warnings Bruce Richardson
2017-05-04 16:38   ` Stephen Hemminger
2017-05-05  9:42     ` Bruce Richardson
2017-05-05 10:02       ` Thomas Monjalon
2017-05-05 10:20         ` Bruce Richardson
2017-05-05 12:18         ` Van Haaren, Harry
2017-05-04 15:38 ` [dpdk-dev] [PATCH 02/10] drivers/net: disable new gcc 7 warnings for base code Bruce Richardson
2017-05-04 15:38 ` [dpdk-dev] [PATCH 03/10] net/bnx2x: fix warnings about switch fall-through Bruce Richardson
2017-05-04 15:38 ` [dpdk-dev] [PATCH 04/10] net/ixgbe: fix gcc 7 warning for switch fallthrough Bruce Richardson
2017-05-05  0:46   ` Lu, Wenzhuo
2017-05-04 15:38 ` [dpdk-dev] [PATCH 05/10] net/vmxnet3: fix compile error with gcc 7 Bruce Richardson
2017-05-04 16:39   ` Stephen Hemminger
2017-05-04 15:38 ` [dpdk-dev] [PATCH 06/10] lib: fix gcc 7 warnings for switch fall-through Bruce Richardson
2017-05-04 15:38 ` [dpdk-dev] [PATCH 07/10] net: fix missing break inside conditional compile block Bruce Richardson
2017-05-05  9:28   ` Singh, Jasvinder
2017-05-04 15:38 ` [dpdk-dev] [PATCH 08/10] app/testpmd: document explicit switch fall-through Bruce Richardson
2017-05-04 15:38 ` [dpdk-dev] [PATCH 09/10] test/test: fix missing break in switch Bruce Richardson
2017-05-04 15:38 ` [dpdk-dev] [PATCH 10/10] test/test: fix gcc 7 compiler error Bruce Richardson
2017-05-05 16:38 ` [dpdk-dev] [PATCH 00/10] Enable DPDK core build with gcc 7 Thomas Monjalon

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).