[PATCH] net/cnxk: fix error when compiled for x86
Jerin Jacob
jerinjacobk at gmail.com
Thu Mar 10 09:48:43 CET 2022
On Thu, Mar 10, 2022 at 7:06 AM Jiang, YuX <yux.jiang at intel.com> wrote:
>
> Hi maintainers,
>
> Who can give acked-by for this patch?
> May I know this patch can be merged into 22.03 or not?
Acked-by: Jerin Jacob <jerinj at marvell.com>
Updated the git commit as follows and applied to
dpdk-next-net-mrvl/for-next-net. Thanks
net/cnxk: fix build error with optimization
Fix the following build error seen with --optimization=1 and
GCC 10.3.0.
../drivers/net/cnxk/cnxk_ethdev_mtr.c: In function
‘cnxk_nix_mtr_policy_validate’:
../lib/ethdev/rte_mtr_driver.h:188:10: error: ‘str’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
../drivers/net/cnxk/cn10k_rx.h:149:2 error: ‘frag_ptr’ may be
used uninitialized in this function
Bugzilla ID: 939
Fixes: b526599020ef ("net/cnxk: fix build with GCC 12")
Cc: stable at dpdk.org
Reported-by: Ferruh Yigit <ferruh.yigit at intel.com>
Signed-off-by: Rakesh Kudurumalla <rkudurumalla at marvell.com>
Tested-by: Daxue Gao <daxuex.gao at intel.com>
Acked-by: Jerin Jacob <jerinj at marvell.com>
>
> > -----Original Message-----
> > From: Rakesh Kudurumalla <rkudurumalla at marvell.com>
> > Sent: 2022年3月4日 22:24
> > To: Nithin Dabilpuram <ndabilpuram at marvell.com>; Kiran Kumar K
> > <kirankumark at marvell.com>; Sunil Kumar Kori <skori at marvell.com>; Satha
> > Rao <skoteshwar at marvell.com>
> > Cc: dev at dpdk.org; jerinj at marvell.com; Rakesh Kudurumalla
> > <rkudurumalla at marvell.com>; stable at dpdk.org; Yigit, Ferruh
> > <ferruh.yigit at intel.com>
> > Subject: [PATCH] net/cnxk: fix error when compiled for x86
> >
> > fix error when compiled for x86 platform when compiled with optimization
> > flag enabled
> > error: ‘str’ may be used uninitialized in this function
> > error: ‘frag_ptr’ may be used uninitialized in this function
> >
> > Bugzilla ID: 939
> > Fixes: b526599020ef ("net/cnxk: fix build with GCC 12")
> > Cc: stable at dpdk.org
> >
> > Reported-by: Ferruh Yigit <ferruh.yigit at intel.com>
> > Signed-off-by: Rakesh Kudurumalla <rkudurumalla at marvell.com>
> > ---
More information about the stable
mailing list