Soft Patch Panel
 help / color / mirror / Atom feed
From: ogawa.yasufumi@lab.ntt.co.jp
To: spp@dpdk.org, ferruh.yigit@intel.com
Cc: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
Subject: [spp] [PATCH 2/2] makefile: ignore deprecated declarations
Date: Thu, 23 Aug 2018 19:54:42 +0900	[thread overview]
Message-ID: <20180823105442.74672-3-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <20180823105442.74672-1-ogawa.yasufumi@lab.ntt.co.jp>

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

Rte_eth_dev_attach() and rte_eth_dev_detach() is deprecated in DPDK
v18.08 and removed in v18.11. It should be replaced with
rte_eth_hotplug_add() and rte_eth_hotplug_remove().

This patch is for adding `-Wno-deprecated-declarations` to avoid
warnings while compilation as temporary. It should be fixed as described
above before v18.11 is released.

Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
 src/nfv/Makefile | 1 +
 src/vf/Makefile  | 1 +
 src/vm/Makefile  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/src/nfv/Makefile b/src/nfv/Makefile
index 4d5eec6..f40e0d1 100644
--- a/src/nfv/Makefile
+++ b/src/nfv/Makefile
@@ -16,6 +16,7 @@ SRCS-y := nfv.c ../shared/common.c
 
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
+CFLAGS += -Wno-deprecated-declarations
 
 ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
 LDLIBS += -lrte_pmd_ring
diff --git a/src/vf/Makefile b/src/vf/Makefile
index 43d3db0..189bf7d 100644
--- a/src/vf/Makefile
+++ b/src/vf/Makefile
@@ -16,6 +16,7 @@ SRCS-y := spp_vf.c classifier_mac.c spp_forward.c string_buffer.c command_conn.c
 
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
+CFLAGS += -Wno-deprecated-declarations
 #CFLAGS += -DSPP_DEMONIZE
 #CFLAGS += -DSPP_RINGLATENCYSTATS_ENABLE
 
diff --git a/src/vm/Makefile b/src/vm/Makefile
index 27ba47e..2392f47 100644
--- a/src/vm/Makefile
+++ b/src/vm/Makefile
@@ -26,6 +26,7 @@ INC := $(wildcard *.h)
 CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
+CFLAGS += -Wno-deprecated-declarations
 
 ifeq ($(CONFIG_RTE_BUILD_SHARED_LIB),y)
 LDLIBS += -lrte_pmd_ring
-- 
2.7.4

  parent reply	other threads:[~2018-08-23 10:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-23 10:54 [spp] [PATCH 0/2] Fix compile error with DPDK v18.08 ogawa.yasufumi
2018-08-23 10:54 ` [spp] [PATCH 1/2] shared: remove nouse txq_flags ogawa.yasufumi
2018-08-23 10:54 ` ogawa.yasufumi [this message]
2018-11-06 11:18 ` [spp] [spp 03234] [PATCH 0/2] Fix compile error with DPDK v18.08 Hideyuki Yamashita
2018-11-06 11:37   ` [spp] Cannnot add pcap PMD and null PMD via spp.py Hideyuki Yamashita
2018-11-07  3:09     ` Yasufumi Ogawa
2018-11-06 12:26   ` [spp] [spp 03234] [PATCH 0/2] Fix compile error with DPDK v18.08 Yasufumi Ogawa
2018-11-07  0:35     ` Hideyuki Yamashita
2018-11-07  3:03       ` Yasufumi Ogawa
2018-11-07  3:30         ` [spp] [spp 03509] " Hideyuki Yamashita

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180823105442.74672-3-ogawa.yasufumi@lab.ntt.co.jp \
    --to=ogawa.yasufumi@lab.ntt.co.jp \
    --cc=ferruh.yigit@intel.com \
    --cc=spp@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).