Soft Patch Panel
 help / color / mirror / Atom feed
From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH 1/2] makefile: add DALLOW_EXPERIMENTAL_API option
Date: Mon, 26 Nov 2018 16:25:15 +0900	[thread overview]
Message-ID: <1543217116-13662-2-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> (raw)
In-Reply-To: <1543217116-13662-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp>

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

Some of latest DPDK APIs introduced to replace deprecated APIs are
still experimental. This update is to add `-DALLOW_EXPERIMENTAL_API`
option to CFLAGS to avoid compile errors for the experimental APIs.

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

diff --git a/src/mirror/Makefile b/src/mirror/Makefile
index a759ad2..614a44c 100644
--- a/src/mirror/Makefile
+++ b/src/mirror/Makefile
@@ -19,6 +19,7 @@ SRCS-y += ../vf/common/command_conn.c ../vf/common/command_proc.c
 SRCS-y += ../vf/common/command_dec.c
 SRCS-y += ../vf/common/ringlatencystats.c ../vf/common/string_buffer.c
 
+CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
 CFLAGS += -I$(SRCDIR)/../vf/common
diff --git a/src/nfv/Makefile b/src/nfv/Makefile
index 4d5eec6..16dfbbb 100644
--- a/src/nfv/Makefile
+++ b/src/nfv/Makefile
@@ -14,6 +14,7 @@ APP = spp_nfv
 # all source are stored in SRCS-y
 SRCS-y := nfv.c ../shared/common.c
 
+CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
 
diff --git a/src/primary/Makefile b/src/primary/Makefile
index e8a5d8d..bedea8e 100644
--- a/src/primary/Makefile
+++ b/src/primary/Makefile
@@ -23,6 +23,7 @@ SRCS-y := main.c init.c args.c ../shared/common.c
 
 INC := $(wildcard *.h)
 
+CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
 
diff --git a/src/vf/Makefile b/src/vf/Makefile
index b0a1fdb..f2a167b 100644
--- a/src/vf/Makefile
+++ b/src/vf/Makefile
@@ -18,6 +18,7 @@ SRCS-y += common/command_conn.c common/command_dec.c common/command_proc.c
 SRCS-y += common/spp_proc.c
 SRCS-y += ../shared/common.c
 
+CFLAGS += -DALLOW_EXPERIMENTAL_API
 CFLAGS += $(WERROR_FLAGS) -O3
 CFLAGS += -I$(SRCDIR)/../shared
 CFLAGS += -I$(SRCDIR)/common
-- 
2.7.4

  reply	other threads:[~2018-11-26  7:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-26  7:25 [spp] [PATCH 0/2] Fix compile errors for SPP v18.08 ogawa.yasufumi
2018-11-26  7:25 ` ogawa.yasufumi [this message]
2018-11-26  7:25 ` [spp] [PATCH 2/2] spp_vf: fix bug of not used variable ogawa.yasufumi

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=1543217116-13662-2-git-send-email-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).