[PATCH v1] raw/ifpga: initialize variable to avoid compile error

Thomas Monjalon thomas at monjalon.net
Wed Mar 16 20:34:21 CET 2022


16/03/2022 10:40, Thomas Monjalon:
> 16/03/2022 10:27, Gao, DaxueX:
> > From: Wei Huang <wei.huang at intel.com>
> > > 
> > > Compile failed with cflag optimization=1 on Ubuntu20.04 with GCC10.3, it
> > > reported vendor_id and dev_id may be used uninitialized in function
> > > ifpga_rawdev_fill_info().
> > > Actually it's not the truth, the variables are initialized in function
> > > ifpga_get_dev_vendor_id(). To avoid such compile error, the variables are
> > > initialized when they are defined.
> > > 
> > > Signed-off-by: Wei Huang <wei.huang at intel.com>
> > > Acked-by: Tianfei Zhang <tianfei.zhang at intel.com>
> > > Acked-by: Rosen Xu <rosen.xu at intel.com>
> > 
> > Tested-by: Daxue Gao <daxuex.gao at intel.com>
> 
> We need a "Fixes:" line to help backports, please.

Added this:

Fixes: 9c006c45d0c5 ("raw/ifpga: scan PCIe BDF device tree")
Cc: stable at dpdk.org

Applied in last minute.




More information about the stable mailing list