From: Mark Kavanagh <mark.b.kavanagh@intel.com>
To: dev@dpdk.org
Cc: stable@dpdk.org, ferruh.yigit@intel.com,
ajit.khaparde@broadcom.com,
Mark Kavanagh <mark.b.kavanagh@intel.com>
Subject: [dpdk-dev] [PATCH] net/bnxt: fix compilation
Date: Mon, 9 Oct 2017 14:59:30 +0100 [thread overview]
Message-ID: <1507557570-11483-1-git-send-email-mark.b.kavanagh@intel.com> (raw)
As of 5ef3b79fdfe6f, compilation of DPDK fails with the following
error message:
"bnxt_filter.c:960:117: error: ‘vnic’ may be used uninitialized in this
function [-Werror=maybe-uninitialized]".
Resolve this by initializing 'vnic' to NULL;
Fixes: 5ef3b79fdfe6f ("net/bnxt: support flow filter ops")
CC: stable@dpdk.org
Signed-off-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
---
drivers/net/bnxt/bnxt_filter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c
index d470be2..9f171fd 100644
--- a/drivers/net/bnxt/bnxt_filter.c
+++ b/drivers/net/bnxt/bnxt_filter.c
@@ -906,7 +906,7 @@ struct bnxt_filter_info *
{
struct bnxt *bp = (struct bnxt *)dev->data->dev_private;
struct bnxt_filter_info *filter;
- struct bnxt_vnic_info *vnic;
+ struct bnxt_vnic_info *vnic = NULL;
struct rte_flow *flow;
unsigned int i;
int ret = 0;
--
1.9.3
next reply other threads:[~2017-10-09 13:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-09 13:59 Mark Kavanagh [this message]
2017-10-09 14:14 ` [dpdk-dev] [dpdk-stable] " De Lara Guarch, Pablo
2017-10-09 14:28 ` Kavanagh, Mark B
2017-10-09 17:34 ` [dpdk-dev] " Ferruh Yigit
2017-10-10 7:40 ` Kavanagh, Mark B
2017-10-10 16:45 ` Ferruh Yigit
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=1507557570-11483-1-git-send-email-mark.b.kavanagh@intel.com \
--to=mark.b.kavanagh@intel.com \
--cc=ajit.khaparde@broadcom.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@intel.com \
--cc=stable@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).