[dpdk-dev] [PATCH v2] node: fix arm64 build issue for older gcc

David Marchand david.marchand at redhat.com
Wed May 13 15:03:28 CEST 2020


On Wed, May 13, 2020 at 2:36 PM Jerin Jacob <jerinjacobk at gmail.com> wrote:
>
> On Wed, May 13, 2020 at 5:36 PM Nithin Dabilpuram
> <ndabilpuram at marvell.com> wrote:
> >
> > Older GCC(~4) complains about uninitialized 'dip'
> > var though all the lanes of the vec register are set.
> > Hence this patch explicitly initializes vec register
> > to fix the issue.
> >
> > In file included from ip4_lookup.c:34:0:
> > ip4_lookup_neon.h: n function ‘ip4_lookup_node_process’: \
> > ip4_lookup_neon.h:25:12: error: ‘dip’ may be used uninitialized in \
> >                                 this function [-Werror=maybe-uninitialized]
> >   int32x4_t dip;
> >             ^
> >
> > Fixes: 16df6a2c6671 ("node: add IPv4 lookup for arm64")
>
> Reported-by: David Marchand <david.marchand at redhat.com>
> > Signed-off-by: Nithin Dabilpuram <ndabilpuram at marvell.com>
> > Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
> Reviewed-by: Jerin Jacob <jerinj at marvell.com>

Applied, thanks.


-- 
David Marchand



More information about the dev mailing list