From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9AE03A0032; Wed, 16 Mar 2022 10:40:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 374CA410EC; Wed, 16 Mar 2022 10:40:59 +0100 (CET) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mails.dpdk.org (Postfix) with ESMTP id CE14F40395; Wed, 16 Mar 2022 10:40:57 +0100 (CET) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 26C605C0092; Wed, 16 Mar 2022 05:40:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 16 Mar 2022 05:40:57 -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=oC0HVPICkGeBPS /HAslXgBqC+K7S/Mauu2KVvBYVIjE=; b=Wd/vOmm0wDCLm/fijAArGI3ioSVdBh XPWyi0PppUGfO9rtIjUZIMdrziw2n/3VqCHYdPtMwE76kshxy5FdmjX/1IMbW/ED wUmS/in8XpCpH5Oqf9mMWXaXm77/wh5eWf3+f06Kte2KlJDIFHjV252DcS3sNj71 HeXibIIFlgmvcUbIAn/V/TsApNoOcn4Md9WkV0KsQ8lRIIWXkLtwL6TroTd3T6a+ 8nFDN+k13wBppMfTzxqof1bk+WVoRgb2OWd+FBVdc6k1Zd9r2NTjriqa3EPRxUlx QiqYNMz6YKSvA7tGZHaV3VPWlR3+x6CU/5ckXKm2AYVY2B9o6D/WyKgA== 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=oC0HVPICkGeBPS/HAslXgBqC+K7S/Mauu2KVvBYVI jE=; b=oVxjhPfHHCH7lv0q29SlopD68uvlh4PQNoFMdqvoQkZa3RQ+5mnWZDic8 Pntl4Nt8Kr9Xr3vowNmoqU192LXG/DnxZnduZ3Jr9Q5qw4aoD2XJ+mIet+CWsej5 TGIH6gLeORBhusgWCO4Ly1DMAb/ZgRfbeSM5YFJYS0GxuhQvEl0KFoSlIRe35A+0 h3Ahv6734BYaeGqxlDrIMHcme3VmP/e/mY3seHulAiXL1PBNW4j+P+kueLvu2KSy /v69ZaeOh8TWZwmEGeNSFp9zjGcb+XShC9/4orYlCbQnIP+JzuOTOfnHgjARbr9v 0k3NXsalYi3Qle5pqglyfawjdiDSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudefvddgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 16 Mar 2022 05:40:55 -0400 (EDT) From: Thomas Monjalon To: "Huang, Wei" , "Xu, Rosen" , "Gao, DaxueX" Cc: "dev@dpdk.org" , "nipun.gupta@nxp.com" , "hemant.agrawal@nxp.com" , "stable@dpdk.org" , "Zhang, Tianfei" , "Zhang, Qi Z" , "Yigit, Ferruh" , "Huang, Wei" Subject: Re: [PATCH v1] raw/ifpga: initialize variable to avoid compile error Date: Wed, 16 Mar 2022 10:40:52 +0100 Message-ID: <3116003.mvXUDI8C0e@thomas> In-Reply-To: References: <20220316072630.1916479-1-wei.huang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 16/03/2022 10:27, Gao, DaxueX: > From: Wei Huang > > > > 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 > > Acked-by: Tianfei Zhang > > Acked-by: Rosen Xu > > --- > > Tested-by: Daxue Gao We need a "Fixes:" line to help backports, please.