From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama500.ecl.ntt.co.jp (tama500.ecl.ntt.co.jp [129.60.39.148]) by dpdk.org (Postfix) with ESMTP id BF0832C60 for ; Thu, 23 Aug 2018 12:55:23 +0200 (CEST) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id w7NAtMpB006816; Thu, 23 Aug 2018 19:55:22 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 4201FEA8001; Thu, 23 Aug 2018 19:55:22 +0900 (JST) Received: from localhost.localdomain (unknown [129.60.13.51]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 2AFF6EA7D4A; Thu, 23 Aug 2018 19:55:22 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com Cc: Yasufumi Ogawa Date: Thu, 23 Aug 2018 19:54:42 +0900 Message-Id: <20180823105442.74672-3-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20180823105442.74672-1-ogawa.yasufumi@lab.ntt.co.jp> References: <20180823105442.74672-1-ogawa.yasufumi@lab.ntt.co.jp> X-TM-AS-MML: disable Subject: [spp] [PATCH 2/2] makefile: ignore deprecated declarations X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 10:55:24 -0000 From: Yasufumi Ogawa 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 --- 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