From: Pablo de Lara <pablo.de.lara.guarch@intel.com>
To: santosh.shukla@caviumnetworks.com, jerin.jacob@caviumnetworks.com
Cc: dev@dpdk.org, Pablo de Lara <pablo.de.lara.guarch@intel.com>
Subject: [dpdk-dev] [PATCH] net/octeontx/base: fix icc build
Date: Tue, 10 Oct 2017 05:37:02 +0100 [thread overview]
Message-ID: <20171010043702.36498-1-pablo.de.lara.guarch@intel.com> (raw)
drivers/net/octeontx/base/octeontx_pkovf.c(527):
error #592: variable "i" is used before its value is set
RTE_SET_USED(i);
Fixes: ab4f789560c4 ("net/octeontx/base: probe PKI and PKO PCIe VF devices")
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
drivers/net/octeontx/base/octeontx_pkovf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/octeontx/base/octeontx_pkovf.c b/drivers/net/octeontx/base/octeontx_pkovf.c
index cbcc006..f0fb930 100644
--- a/drivers/net/octeontx/base/octeontx_pkovf.c
+++ b/drivers/net/octeontx/base/octeontx_pkovf.c
@@ -522,10 +522,10 @@ static void
octeontx_pkovf_setup(void)
{
static bool init_once;
- int i;
- RTE_SET_USED(i);
if (!init_once) {
+ unsigned int i;
+
rte_spinlock_init(&pko_vf_ctl.lock);
pko_vf_ctl.fc_iomem = PKO_IOMEM_NULL;
--
2.9.4
next reply other threads:[~2017-10-10 12:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-10 4:37 Pablo de Lara [this message]
2017-10-10 13:33 ` santosh
2017-10-10 19:24 ` 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=20171010043702.36498-1-pablo.de.lara.guarch@intel.com \
--to=pablo.de.lara.guarch@intel.com \
--cc=dev@dpdk.org \
--cc=jerin.jacob@caviumnetworks.com \
--cc=santosh.shukla@caviumnetworks.com \
/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).