[dpdk-dev] [dpdk-stable] [PATCH] test/prefetch: fix build with GCC 11

Thomas Monjalon thomas at monjalon.net
Thu May 20 23:06:01 CEST 2021


20/05/2021 16:31, David Marchand:
> On Thu, May 20, 2021 at 1:07 PM Kevin Traynor <ktraynor at redhat.com> wrote:
> >
> > GCC 11 complains that 'a' is uninitialized.
> >
> > ../dpdk/app/test/test_prefetch.c: In function 'test_prefetch':
> > ../dpdk/app/test/test_prefetch.c:25:9:
> > error: 'a' may be used uninitialized [-Werror=maybe-uninitialized]
> >    25 |         rte_prefetch0(&a);
> >       |         ^~~~~~~~~~~~~~~~~
> >
> > Fix by initializing 'a'.
> >
> > Bugzilla ID: 714
> > Fixes: af75078fece3 ("first public release")
> > Cc: stable at dpdk.org
> >
> > Reported-by: Ali Alnubani <alialnu at nvidia.com>
> > Signed-off-by: Kevin Traynor <ktraynor at redhat.com>
> 
> Reviewed-by: David Marchand <david.marchand at redhat.com>

Applied, thanks





More information about the dev mailing list