Re: [dpdk-dev] [PATCH v6 08/12] net/dpaa2: fix possible use of uninitialized vars

2019-11-04 Thread Andrzej Ostruszka
On 11/4/19 12:46 PM, Hemant Agrawal wrote: > Hi Andrzej Hello Hemant, Thank you for your comments. >> -Original Message- >> From: Andrzej Ostruszka [...] >> a/drivers/net/dpaa2/mc/dpkg.c b/drivers/net/dpaa2/mc/dpkg.c index >> 80f94f40e..7aa63ea12 100644 >> --- a/drivers/net/dpaa2/mc/dpk

Re: [dpdk-dev] [PATCH v6 08/12] net/dpaa2: fix possible use of uninitialized vars

2019-11-04 Thread Hemant Agrawal
Hi Andrzej > -Original Message- > From: Andrzej Ostruszka > Sent: Tuesday, October 29, 2019 7:42 PM > To: dev@dpdk.org; Hemant Agrawal ; Sachin > Saxena > Cc: mattias.ronnb...@ericsson.com; step...@networkplumber.org > Subject: [PATCH v6 08/12] net/dpaa2: fix possible use of uninitialize

[dpdk-dev] [PATCH v6 08/12] net/dpaa2: fix possible use of uninitialized vars

2019-10-29 Thread Andrzej Ostruszka
This patch fixes 'maybe-uninitialized' warnings reported by compiler when using LTO. Compiler warning pointing to this error (with LTO enabled): error: ‘kg_cfg.extracts[0].masks[0].mask’ may be used uninitialized in this function [-Werror=maybe-uninitialized] extr->masks[j].mask = cfg->extract