On 2/20/2023 4:44 PM, Krzysztof Karas wrote: > When Link Time Optimization is enabled, compiler may > complain about "id" in eth_representor_cmp() being > uninitialized. > > To suppress the warning it is enough to add explicit > initialization of the variable causing the issue. > > Signed-off-by: Krzysztof Karas <krzysztof.ka...@intel.com>
Fixes: df7547a6a2cc ("ethdev: add helper function to get representor ID") Cc: sta...@dpdk.org Acked-by: Ferruh Yigit <ferruh.yi...@amd.com> Applied to dpdk-next-net/main, thanks. > --- > .mailmap | 1 + > lib/ethdev/rte_class_eth.c | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/.mailmap b/.mailmap > index 5015494210..ba34945bc5 100644 > --- a/.mailmap > +++ b/.mailmap > @@ -1573,3 +1573,4 @@ Ziye Yang <ziye.y...@intel.com> > Zoltan Kiss <zoltan.k...@schaman.hu> <zoltan.k...@linaro.org> > Zorik Machulsky <zo...@amazon.com> > Zyta Szpak <z...@marvell.com> <z...@semihalf.com> <zyta.sz...@semihalf.com> > +Krzysztof Karas <krzysztof.ka...@intel.com> Alphabetically sorted while merging. Also patch title updated since it gives warning: $ ./devtools/check-git-log.sh -n1 Wrong headline format: ethdev: initialize id in eth_representor_cmp()