From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 6D376A0032
	for <public@inbox.dpdk.org>; Wed, 16 Mar 2022 20:34:25 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 4F0D8410EC;
	Wed, 16 Mar 2022 20:34:25 +0100 (CET)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com
 [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id 2C424410EC;
 Wed, 16 Mar 2022 20:34:24 +0100 (CET)
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailout.nyi.internal (Postfix) with ESMTP id C49F45C0223;
 Wed, 16 Mar 2022 15:34:23 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Wed, 16 Mar 2022 15:34:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 cc:cc:content-transfer-encoding:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:sender:subject:subject:to:to; s=fm1; bh=DdOPbMNy9iDv9B
 S7kycxX/tMgLCfxN/TguoQcWBdbdE=; b=CtnXrrDzB6aLKKaGlHKn04POz2L4hF
 kRB4Z05vU8ZP7+ITEr8Hw7IWWjLYGOdSptvcG4AAmbvexTXxGpoe22OO8OZPQKXq
 AAL3vxZK6NDe4rYQW3HC+Ix8jf4l8DIA7pC+AcXTNPq18eWcsRQ3j9VW3MShv/qQ
 3MlVdZFYhaU/fnYtEUNgOrrMV6jdLzBc8a5EeI6/XFOPhZ5Ib2fD/LryEdfUgb3J
 IGUNRqa9oPS3rJwAPOW4IIGlf9poo/8LlLZjIvbI4oVk5XJ4o0/itBmrSAcJYTP2
 2QDOMsJwvqJdvxUZkv9FAPETc/4I6hp2fyR3wOn1hhuU6DxNYOHwJsXQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:from:from:in-reply-to:in-reply-to
 :message-id:mime-version:references:reply-to:sender:subject
 :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm3; bh=DdOPbMNy9iDv9BS7kycxX/tMgLCfxN/TguoQcWBdb
 dE=; b=WRWF4BwGfUNGc2p13YICPd/qndOjqHiyP8U2PSwvKwPtlG5N2M7JNSPgS
 ZoCkvjTTmCAYFTZ0MPeoApcfHtRmSN2nTxeqFwbU3CZZGv5oADDq8nbdNlVlg7EU
 0FUH3S+jgpCIObUy63y3XRohWguLIxs24/eUL4bmAp3BEenaITLGov82fHpdBaqE
 6VWLfSipQPgXyO03euKg666aPz04nD15WG5OmUMThJKWVEjypAkKyTBUs+xAxvdh
 vQY+e9AD4pKanM/3PRTsA/trhFc2Kl6OZlH4PPnbKKmBS6i6VYBzfmM9BjVgyi/m
 jPLw/Pe6AO0SVLB1QTQmmpTxSlhFw==
X-ME-Sender: <xms:vzsyYopZp_yNaXippt8UJlia6xboSgm1Ocz7IsMA-acSMnf9zz31rQ>
 <xme:vzsyYuo34WwAXEvFr13l8d_vMyjXICR3-ooz5XhYaZYQQZgGyQZZLWSgVjaNgKyr3
 j0ZNXK0f3KOR7LlEw>
X-ME-Received: <xmr:vzsyYtNiOSMYTwDd6v9RjAcvZBcqsBbXrdpQZuh_wxWCtDKIT2XxjWsO1avGo6XRu4SrgK8WtKoG_1-0tfLjzQDB-Q>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefvddguddvfecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm
 rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc
 ggtffrrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdej
 ueeiiedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh
 hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght
X-ME-Proxy: <xmx:vzsyYv4RoOekWAoYNRGorXjFK2whQdeiF2vTGpg_hrzSkDY4sXrJuQ>
 <xmx:vzsyYn6hvYWkvEnirXO5UU4i-sJP9VwutnSFIqlqybWZHypIuE0FAw>
 <xmx:vzsyYviS4_VtowIIF1DOJhs4LIMzy-rePVB2zzQyPnybR7cfkM2mhg>
 <xmx:vzsyYhumooPyTzVvi9nG7FQfyCTAnPm1tJfwQ7aMNRgK-OuxR5JX2w>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 16 Mar 2022 15:34:22 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: "Huang, Wei" <wei.huang@intel.com>
Cc: "Xu, Rosen" <rosen.xu@intel.com>, "Gao, DaxueX" <daxuex.gao@intel.com>,
 stable@dpdk.org, "dev@dpdk.org" <dev@dpdk.org>,
 "nipun.gupta@nxp.com" <nipun.gupta@nxp.com>,
 "hemant.agrawal@nxp.com" <hemant.agrawal@nxp.com>, "Zhang,
 Tianfei" <tianfei.zhang@intel.com>, "Zhang, Qi Z" <qi.z.zhang@intel.com>,
 "Yigit, Ferruh" <ferruh.yigit@intel.com>
Subject: Re: [PATCH v1] raw/ifpga: initialize variable to avoid compile error
Date: Wed, 16 Mar 2022 20:34:21 +0100
Message-ID: <21892462.EfDdHjke4D@thomas>
In-Reply-To: <3116003.mvXUDI8C0e@thomas>
References: <20220316072630.1916479-1-wei.huang@intel.com>
 <CO1PR11MB5011CA05C368BEF89F6913A79D119@CO1PR11MB5011.namprd11.prod.outlook.com>
 <3116003.mvXUDI8C0e@thomas>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org

16/03/2022 10:40, Thomas Monjalon:
> 16/03/2022 10:27, Gao, DaxueX:
> > From: Wei Huang <wei.huang@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@intel.com>
> > > Acked-by: Tianfei Zhang <tianfei.zhang@intel.com>
> > > Acked-by: Rosen Xu <rosen.xu@intel.com>
> > 
> > Tested-by: Daxue Gao <daxuex.gao@intel.com>
> 
> We need a "Fixes:" line to help backports, please.

Added this:

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

Applied in last minute.