From: ogawa.yasufumi@lab.ntt.co.jp
To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp
Subject: [spp] [PATCH 2/2] spp_vf: fix bug of not used variable
Date: Mon, 26 Nov 2018 16:25:16 +0900 [thread overview]
Message-ID: <1543217116-13662-3-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>
`type_str` is only used in `ifdef` preprocessor directive and it is
considered as not used variable and causes a compile error. This update
is to fix this bug by reffering it outside `ifdef` directive.
Signed-off-by: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>
---
src/vf/common/command_dec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/vf/common/command_dec.c b/src/vf/common/command_dec.c
index 9f56eba..5b6ffcf 100644
--- a/src/vf/common/command_dec.c
+++ b/src/vf/common/command_dec.c
@@ -186,6 +186,7 @@ spp_convert_port_to_iface(const char *port,
static enum spp_component_type
spp_convert_component_type(const char *type_str)
{
+ RTE_LOG(DEBUG, APP, "type_str is %s\n", type_str);
#ifdef SPP_VF_MODULE
if (strncmp(type_str, CORE_TYPE_CLASSIFIER_MAC_STR,
strlen(CORE_TYPE_CLASSIFIER_MAC_STR)+1) == 0) {
--
2.7.4
prev parent 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 ` [spp] [PATCH 1/2] makefile: add DALLOW_EXPERIMENTAL_API option ogawa.yasufumi
2018-11-26 7:25 ` ogawa.yasufumi [this message]
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-3-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).