Skip to contentSkip to conversation

net/octeontx/base: fix icc build

PATCH In review Pablo de Lara 3 participants 3 messages Oct 10, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/octeontx/base: fix icc build

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")
---
 drivers/net/octeontx/base/octeontx_pkovf.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/octeontx/base/octeontx_pkovf.c +2 -2
index cbcc006..f0fb930 100644
@@ -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;
Signature · 1 line
2.9.4
#2 lore raw
Quoted 6 lines · santosh
Quoted 4 lines · Pablo de Lara

drivers/net/octeontx/base/octeontx_pkovf.c(527):
error #592: variable "i" is used before its value is set

        RTE_SET_USED(i);
Quoted 6 lines
Quoted 4 lines
Fixes ab4f789560c4 ("net/octeontx/base: probe PKI and PKO PCIe VF devices")

---

Squashed into relevant commit in next-net, thanks.