[dpdk-dev] [PATCH v1] examples/ip_pipeline: fix build issue with GCC 13

Ali Alnubani alialnu at nvidia.com
Wed May 3 10:33:52 CEST 2023


> -----Original Message-----
> From: Ali Alnubani
> Sent: Wednesday, May 3, 2023 11:30 AM
> To: 'jerinj at marvell.com' <jerinj at marvell.com>; dev at dpdk.org
> Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas at monjalon.net>;
> david.marchand at redhat.com; ferruh.yigit at xilinx.com;
> stephen at networkplumber.org; stable at dpdk.org
> Subject: RE: [dpdk-dev] [PATCH v1] examples/ip_pipeline: fix build issue with
> GCC 13
> 
> > -----Original Message-----
> > From: jerinj at marvell.com <jerinj at marvell.com>
> > Sent: Tuesday, May 2, 2023 4:49 PM
> > To: dev at dpdk.org
> > Cc: NBU-Contact-Thomas Monjalon (EXTERNAL) <thomas at monjalon.net>;
> > david.marchand at redhat.com; ferruh.yigit at xilinx.com;
> > stephen at networkplumber.org; Jerin Jacob <jerinj at marvell.com>;
> > stable at dpdk.org
> > Subject: [dpdk-dev] [PATCH v1] examples/ip_pipeline: fix build issue with
> > GCC 13
> >
> > From: Jerin Jacob <jerinj at marvell.com>
> >
> > Fix the following build issue by initializing req to NULL for
> > the local variable.
> >
> > In function 'thread_msg_handle', inlined from 'thread_main' at
> > ../examples/ip_pipeline/thread.c:3130:6:
> > ../examples/ip_pipeline/thread.c:535:20: warning: 'req' may be used
> > uninitialized [-Wmaybe-uninitialized]
> >   535 |                 if (req == NULL)
> >       |                    ^
> > ../examples/ip_pipeline/thread.c: In function 'thread_main':
> > ../examples/ip_pipeline/thread.c:433:32: note: 'req' was declared here
> >   433 |         struct thread_msg_req *req;
> >
> > Bugzilla ID: 1220
> > Fixes: a8bd581de397 ("examples/ip_pipeline: add thread runtime")
> > Cc: stable at dpdk.org
> >
> > Signed-off-by: Jerin Jacob <jerinj at marvell.com>
> > ---
> 
> Resolves the warning I see in Bugzilla 1220, thanks.
> 
> Now I see a failure in another example app:
> """
> examples/ntb/ntb_fwd.c:945:23: error: 'rte_rawdev_xstats_get' accessing 8
> bytes in a region of size 0 [-Werror=stringop-overflow=]
> """
> Will open a separate issue for that.

Nevermind, I see it's already addressed in this patch:
https://patches.dpdk.org/project/dpdk/patch/20230502135045.3541570-2-jerinj@marvell.com/

Thanks!


More information about the stable mailing list