* [dpdk-dev] [PATCH] mempool/octeontx: fix icc build
@ 2017-10-09 5:21 Pablo de Lara
2017-10-09 14:19 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Pablo de Lara @ 2017-10-09 5:21 UTC (permalink / raw)
To: santosh.shukla, jerin.jacob; +Cc: dev, Pablo de Lara
drivers/mempool/octeontx/octeontx_fpavf.c(789):
error #592: variable "fpa" is used before its value is set
RTE_SET_USED(fpa);
Fixes: 1c842786fe6c ("mempool/octeontx: probe fpavf PCIe devices")
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
---
drivers/mempool/octeontx/octeontx_fpavf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mempool/octeontx/octeontx_fpavf.c b/drivers/mempool/octeontx/octeontx_fpavf.c
index c2d0656..eea934f 100644
--- a/drivers/mempool/octeontx/octeontx_fpavf.c
+++ b/drivers/mempool/octeontx/octeontx_fpavf.c
@@ -783,7 +783,7 @@ fpavf_probe(struct rte_pci_driver *pci_drv, struct rte_pci_device *pci_dev)
{
uint8_t *idreg;
int res;
- struct fpavf_res *fpa;
+ struct fpavf_res *fpa = NULL;
RTE_SET_USED(pci_drv);
RTE_SET_USED(fpa);
--
2.9.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] mempool/octeontx: fix icc build
2017-10-09 5:21 [dpdk-dev] [PATCH] mempool/octeontx: fix icc build Pablo de Lara
@ 2017-10-09 14:19 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-10-09 14:19 UTC (permalink / raw)
To: Pablo de Lara; +Cc: dev, santosh.shukla, jerin.jacob
09/10/2017 07:21, Pablo de Lara:
> drivers/mempool/octeontx/octeontx_fpavf.c(789):
> error #592: variable "fpa" is used before its value is set
> RTE_SET_USED(fpa);
>
> Fixes: 1c842786fe6c ("mempool/octeontx: probe fpavf PCIe devices")
>
> Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-10-09 14:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-09 5:21 [dpdk-dev] [PATCH] mempool/octeontx: fix icc build Pablo de Lara
2017-10-09 14:19 ` Thomas Monjalon
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).