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 76315A0032; Wed, 16 Mar 2022 10:28:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09F62410EC; Wed, 16 Mar 2022 10:28:04 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 756AB40395; Wed, 16 Mar 2022 10:28:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647422882; x=1678958882; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=jejb25gD32visk7H03seFvR4gpmWgLV6fitLen3wYaM=; b=K5q75kF++HCoy/qXk4eqkR/Wj4lsk8Ii7EeL2UvlzvEb1HHvMBvHuuWR 2Vpo77WJD9Y6t1dSWkbmRnzCm1lHn/hPBg+BkDpEZ6LUpmSVNB4Y/XSEe BD5K1XuEtnBou4Y3R9+/iI3CaRa4S/xkYhcy9q/zDTl12r0yifOV7BLH1 GSpvwMaTTWmK5dBpRgej0YJqMKJitn97BcviuttwP9VqbjyjAZqTXihxA fiQDAsL7p6a+R/vAkxXW5cx0MsuwWtniTi+s9tvRlT3dWbe652YRbFLzg yD5CkoHilqDvp37uw1vZTBIszVosyFURzk6Eg7LsYMxSTUYaDBj/a0EOW A==; X-IronPort-AV: E=McAfee;i="6200,9189,10286"; a="255364396" X-IronPort-AV: E=Sophos;i="5.90,186,1643702400"; d="scan'208";a="255364396" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Mar 2022 02:28:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,186,1643702400"; d="scan'208";a="557359436" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga008.jf.intel.com with ESMTP; 16 Mar 2022 02:28:01 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 16 Mar 2022 02:28:00 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 16 Mar 2022 02:28:00 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Wed, 16 Mar 2022 02:28:00 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.42) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Wed, 16 Mar 2022 02:28:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gLQmQxHH6rgCU/NuYlHVOME7ZpuefFD6SsdpQv8Hf/VpslCLXLQ7UD+CuYVfvt3od2ORrKRORAriP5Z0R+xiY4OtlI7oAudjUYNYXS1/8ENxzZmWftECbSf99RzH1BzFGxMGk8Wmn8yLZ/D5CTNO6hqjQYoKTKFILpuoXMgCGHrbsiJq/5SvrBeRGt1O0wwBVmEq8Th3nKobn1xmnKWAvawrZ6Id6HaWrLCL9986hfhkC1WXpmo+Y/Aq2ug0CmFTGOgCi9aV+6MVQluTqwTRb1rBGA0ke3Yc1ZC6iV0ZgjcZhcGH/kttcEiQSYRaJt3N7IPE4jh8iJF9kcgr7pSV/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jejb25gD32visk7H03seFvR4gpmWgLV6fitLen3wYaM=; b=Z8OilWGhc6KsmzXcIQrTWZfiQOu8mq8ru1UI94zCF25A6A0ELho+Wvr531Ky3iEH61QKEORwxuKU/QHhR3S8Q6ndOIfxueyEXP+PSKVqy8+7BV/cXSwBVAhjTB8L11Y9zZ1XFhZIlnDQi71QnMLj5SpQzmVojk8pcxpnRf9W9VVRgU7N2JMnAQPVUVhLVHrV2v3cY1qPPgtqtXZZBlu/rd1tXVAqrr4AFclwXCAIRoi8yeMB1zd7sxj9OV1tZz2ZPo1lSR+kCrWDupYjYYll2Gd8hqqU3iZSs7sm7jlEvzLmwVSsf2ZB1fYgXN/9yb2IF/fSRsPz5SsGQCB7yLf4Mw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from CO1PR11MB5011.namprd11.prod.outlook.com (2603:10b6:303:6d::21) by BY5PR11MB3957.namprd11.prod.outlook.com (2603:10b6:a03:183::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.26; Wed, 16 Mar 2022 09:27:56 +0000 Received: from CO1PR11MB5011.namprd11.prod.outlook.com ([fe80::6d6a:bb3f:434f:7668]) by CO1PR11MB5011.namprd11.prod.outlook.com ([fe80::6d6a:bb3f:434f:7668%7]) with mapi id 15.20.5081.014; Wed, 16 Mar 2022 09:27:56 +0000 From: "Gao, DaxueX" To: "Huang, Wei" , "dev@dpdk.org" , "thomas@monjalon.net" , "Xu, Rosen" , "nipun.gupta@nxp.com" , "hemant.agrawal@nxp.com" CC: "stable@dpdk.org" , "Zhang, Tianfei" , "Zhang, Qi Z" , "Yigit, Ferruh" , "Huang, Wei" Subject: RE: [PATCH v1] raw/ifpga: initialize variable to avoid compile error Thread-Topic: [PATCH v1] raw/ifpga: initialize variable to avoid compile error Thread-Index: AQHYOQe8ro9v76QPlkGi4yTCFsq4nKzBvTTA Date: Wed, 16 Mar 2022 09:27:56 +0000 Message-ID: References: <20220316072630.1916479-1-wei.huang@intel.com> In-Reply-To: <20220316072630.1916479-1-wei.huang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 826efc33-80ad-4fb4-c5f2-08da072f413d x-ms-traffictypediagnostic: BY5PR11MB3957:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wjcUKx0ZRn1HL+kWoemVSvdGBCZHVMEPGnjXxoJWws7gaOOdNn8TJxQrHrEUm2+y3iBqQi88TugHguT34To2ip+seh4yVJysGMBxV0NXEebjIS2x9EkO/q5G7IFhj6H6hcLstmnepFr1PRsFbgjQRI07j/pjPM66BO2aiH2ZPQJckz74djzubVIfBTYuAKAeJHriTxa7Iv3NL8mheknUq+U76HwDC1EfWzaLP6wx+QJb9FpEp0QCptinTVJtJ4JDO+8svHf3Ko+OIYnS+OFu9fRisClGTrcjr7susxD6uYtpCkOiWmYQJfE2/B6kY47uL+yabtgwLwRy7SmVYQjoyREHFGR1BmwIa98quXvmO42Fq8bzd2Q+ySZBKRMnha8rp74ijnJUIYV+IwwEpq7rYbuNeZXKV3GoOl2oRAtkU6F0c2lzMmS6+yERXviOWYTerJ9uHV7f1wXWW4AVziw12uRhxcWHP1GLYyAZKAeiNaUfw3uUo2cj2N3TTjvJE0c6PI86b64k4/miE+G+W3tWLBhsTz0am8oOBQSNHcfcLHKXtz9XWNna0jL0COKrsuMMXQBKPyE73Vt0603s8ndCz0VvkS7hy3FcHUzuj3WfM7FxgDW937aHu2K3JSY88al+bKHvkuMT+zbpQxxez7ck+HzXPzW+eA4JnEtU927LHD9ppXdzpL0n4fMWoNnSzPQEUJgpBeuBXayTwipNRamOZA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO1PR11MB5011.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(71200400001)(66946007)(64756008)(66556008)(38070700005)(7696005)(316002)(9686003)(86362001)(66446008)(82960400001)(54906003)(110136005)(53546011)(508600001)(76116006)(6506007)(66476007)(107886003)(26005)(38100700002)(186003)(83380400001)(55016003)(122000001)(4744005)(33656002)(5660300002)(8936002)(52536014)(4326008)(8676002)(2906002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?SFo4YlRnNGowTkF5aFdLN3luQXI0Q20vemMrZlFZWStuZjVXaitIN2Nl?= =?iso-2022-jp?B?Q1ZHYk5kaFJWL3VZUTdaUVphSDVtVWVPWlUraGRDNG1sak9TTFNpVE54?= =?iso-2022-jp?B?ampMTHc3NVZmbGYrbDNZa0tEemlZc3ZjOEx0SWxmOE5xbzhTcndlMXFh?= =?iso-2022-jp?B?NFNMMkVPTUYvNEplYzZReDBYcW44blVyTWVuS2tSTHp1WDMyNXRCbnZ1?= =?iso-2022-jp?B?NEl1L0R3OVI3NDRLWE9MMFRXSHZUVlJIUFZ2bEoxbGRDa2tVbFltazFS?= =?iso-2022-jp?B?bE1qckFaWjJsSkl4MHBhNUt1S3pOMFdDS1JOMWtvMVoyS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Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5011.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 826efc33-80ad-4fb4-c5f2-08da072f413d X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2022 09:27:56.4052 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: e4ciRPr5EkODFVsE7UyjuWMd1B/20ulLbBQ+nr/Jz7Rxd0nVBVmS74b3RTeUVZozHyM4Gb4qv+VXsSt54ZMdxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB3957 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Wei Huang > Sent: 2022=1B$BG/=1B(B3=1B$B7n=1B(B16=1B$BF|=1B(B 15:27 > To: dev@dpdk.org; thomas@monjalon.net; Xu, Rosen ; > nipun.gupta@nxp.com; hemant.agrawal@nxp.com > Cc: stable@dpdk.org; Zhang, Tianfei ; Zhang, Qi = Z > ; Yigit, Ferruh ; Huang, We= i > > Subject: [PATCH v1] raw/ifpga: initialize variable to avoid compile error >=20 > Compile failed with cflag optimization=3D1 on Ubuntu20.04 with GCC10.3, i= t > 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. >=20 > Signed-off-by: Wei Huang > Acked-by: Tianfei Zhang > Acked-by: Rosen Xu > --- Tested-by: Daxue Gao