[spp] [PATCH 2/2] makefile: ignore deprecated declarations

ogawa.yasufumi at lab.ntt.co.jp ogawa.yasufumi at lab.ntt.co.jp
Thu Aug 23 12:54:42 CEST 2018


From: Yasufumi Ogawa <ogawa.yasufumi at 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 at 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



More information about the spp mailing list