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 05A78A00C5 for ; Thu, 1 Sep 2022 10:36:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED4E541614; Thu, 1 Sep 2022 10:36:22 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id E8F0140395; Thu, 1 Sep 2022 10:36:20 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2815BcQR006036; Thu, 1 Sep 2022 01:36:20 -0700 Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2103.outbound.protection.outlook.com [104.47.55.103]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3ja3vemwmg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Sep 2022 01:36:20 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hYFS+NNv6ofQcy/q5tB80Vs34671fyIoLud+4EjQZ6iG3BtSIcdFs6bPV4fKWnBVqahOTPcm7o7NcRkUVIugl2Fi1FbGe8gZt7Z/FOIlWIM3LvqVxd4VKk/bF/F04A9zsI+CVQ8caM18nAqAFQTKttOr0ZFG5hY3mdKjn0GEYwtzkKcoKUVF0AucYdGRDVdzxrLdMv1dfRtASHvxwGnRbpSmaSmlcXcfKBOhZi5mO8wuOTiKeTuSV1dpiMTDcBMXjYgYeaUK5dnddp3yFi+qsKEDDPQJiRMgI0Q5Q/KfTMphkhEhXFJxLNFFW5co89an3zmy4nx4clUbjDPxBzO6Hg== 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=mlpyHx08kiyM8qPP91jqm0YAg70Ez6XaPz2ba/lOWRQ=; b=cg4uGctlws6FkRUqnBv0vzB67HYfyB5Th4P+Ltjk8I7q9pRObVrj8d5lFDrLqvlc2T9YdY9xu5YLVOat8V9+PRrVfNlzsW4PtlAvmBB86DPeG8vJv9Q9fYYt4U0prH+0oPgxxnHQRj6fL+5qIfJhqG3BAFaexF5ipryTSkIpQajLNxZ+x5tpc2rBoCEZVl+mIJzbPEirTBKYwvAzhBc5cWFc+EGEwOqJZ7GrsJH9ctNte71ZPPfsMRxhiSdnVkYicJHt1W3y6qv6ErmXN5y6tA/1kFdsDX53Ko9n/5HvVv4RWFhgGwxcu78mpSY2siEdDGeROOtcjl4T3l3ZRHbxBA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mlpyHx08kiyM8qPP91jqm0YAg70Ez6XaPz2ba/lOWRQ=; b=ME6OfaXgjWGrfdJ1WeFLaPu2QL3J5wkwPGL0wFMFOcSNwBpw4MAIR37kydd9I1ZM6pWwHa18fSINrP0skpDm+9lCfwydHX5b7UYHvNnpoPuPW+c/qBoSZLJTYfTXnQZglwLIxISuRnY0g57C5P7dYv18tgicAx19qqmfb8DGK2s= Received: from PH0PR18MB4473.namprd18.prod.outlook.com (2603:10b6:510:d4::18) by BL1PR18MB4293.namprd18.prod.outlook.com (2603:10b6:208:31c::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5588.12; Thu, 1 Sep 2022 08:36:16 +0000 Received: from PH0PR18MB4473.namprd18.prod.outlook.com ([fe80::b577:913:ef50:f24a]) by PH0PR18MB4473.namprd18.prod.outlook.com ([fe80::b577:913:ef50:f24a%6]) with mapi id 15.20.5588.012; Thu, 1 Sep 2022 08:36:16 +0000 From: Liron Himi To: Amit Prakash Shukla , Zyta Szpak CC: "dev@dpdk.org" , Jerin Jacob Kollanukkaran , "stable@dpdk.org" , Amit Prakash Shukla , Liron Himi Subject: RE: [PATCH] net/mvneta: compilation fix for GCC-12 Thread-Topic: [PATCH] net/mvneta: compilation fix for GCC-12 Thread-Index: AQHYvd08UilcWdGTE0uDUwu6u4S+pa3KP6KQ Date: Thu, 1 Sep 2022 08:36:15 +0000 Message-ID: References: <20220901083118.3074981-1-amitprakashs@marvell.com> In-Reply-To: <20220901083118.3074981-1-amitprakashs@marvell.com> Accept-Language: he-IL, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c0bff503-26e0-4a9a-0a3b-08da8bf508f0 x-ms-traffictypediagnostic: BL1PR18MB4293:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1uf4CBLjtD6Y3EEm+iXDMtN0mL14SsKwxOiOFi//oGKb8OwmXEJ+ctHdN3asYjvKYzSNsDfdcBPet1nxkdHjngHT9WMsSBYCp8F9MbJ4bDV19I0VEkTc1T4Q8bz29YA77lQfL3TTFwtto8TkOgFrZdI4zECsQ5Q48HfWO7qKakxKYylwCuuNgkVfxoOaZ/cJODF2prsSqyicKm9O7jTZjwAj1raLXmBSSU3zucdgjDg+TiHsmUBj9MMs925Lb6zM3pBa2fmztKh6sduzJ2FcTCU8pcfei0VT3HSgtfvaPR9jCKQ1zf1PtUCEC5h6uMi3dZmjQYW/Dj5h7G9Tb1DrS234k75PanwtHfUyAOyLdkdzhoSiQOsnJ+81MXpnrAZNL0gJPjDgl4WweNNFvL/Mp1Yzf149W0w956FqQ2p07UX1Y/5My6z8aciR9p0LjY2X9GXM+omNpkBb6MEQQZMaZ70Kk9g3Qqap8c75dyRG37dN/HqnOflNQ6Gu8cspKTp/U7ewmgc33Dc8lkos0er/oV7NOTLYgQV5PlZDsZhgV3rTSZ1A4YXauLRGvaFGuXOTKo3OdnKPRXubAvh4YKY+TdPKzPp+Zi+uTjYMZhumt4tzvcyy7loDIx6jwxAODOhxKqfn4c1tKt2jUUhdlIoPKWYIaCOAz0Atx+spJV6QreSvn+K4h6o5GSv+L3sftOUmOXyrF37bj1wqzQ8WiYW8arXn7jlXnyT4wldnxkHOZdGefEZVBsetXJxMtayBoJo0cWfsdC5gFos5u4JFISMNDA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR18MB4473.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(376002)(39860400002)(136003)(366004)(346002)(396003)(53546011)(107886003)(38070700005)(186003)(38100700002)(110136005)(71200400001)(122000001)(6506007)(54906003)(7696005)(33656002)(316002)(86362001)(478600001)(5660300002)(41300700001)(8936002)(66476007)(52536014)(9686003)(55016003)(2906002)(26005)(66446008)(64756008)(8676002)(66556008)(4326008)(66946007)(76116006)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?EsNWDQvFpHVhL33QwbSSgSPw8EDEzaHfl6kLi5LXUK3tDES4G67HPmrWlo4Y?= =?us-ascii?Q?WihjVVsU/g//ZH835rKrliGwoR+7TJhoZrc7Un2di885q9zZ2/GPWE2y6YAF?= =?us-ascii?Q?LIvJnhmtwRELxNm4AJT5gChJO7/1yfL39cJmZKM4UnF73crOXQ0st8d5O0ct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uqYezbAhl3qwGHYmrJNAWIHw0h2OP/HxM?= =?us-ascii?Q?TZfTDQb5S/BGS+bGJPfbkkvsFRLdP4NhlI4Smc6AYaPtFLxOUMW+8r4ppCkx?= =?us-ascii?Q?FzGuQerhDRRmo9sV12P04DqwQfTxGzkDiRFG+0+J5VBBa91GPCo8N5HOf4fF?= =?us-ascii?Q?58/j5DhZK9xsHU7FiUUKKwB3OwZcRVnmI67tGHtOQ927a9QibNS5lH49V8W7?= =?us-ascii?Q?dirRfVo/F+av6bln3VMDW52ym5KjsOOHWexsAQNysT8BL869gj413JuPR0gL?= =?us-ascii?Q?YoaJpHdWrzdo1HxW1LBjPX5IUHsrw6C8XoMc6KYtTJ1bskN+iScnYI9pt+fl?= =?us-ascii?Q?5RPcKfIFAVKN259NrBxMMxA1JjVSCGRr7i9yWiD6aV7pp7J0nOLkEOLkXtlg?= =?us-ascii?Q?MZOmA0GI1DIMs6MtUxLQu3H8CtNGiXA0QPiQ+M+14d2hoxTJqM84hG1mmViK?= =?us-ascii?Q?WNJx8aLsALIFlYeVLbYpc1JNwLL8Sfj5WIXjF3RwUga62CbVmhVcpyMqswDH?= =?us-ascii?Q?biUkn1XpnKNIfUcxYvCbeO0kJq9qll4EcDopcP02?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR18MB4473.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c0bff503-26e0-4a9a-0a3b-08da8bf508f0 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Sep 2022 08:36:15.8918 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VRJYuSm8pIgYSE5fDjZVDqHliCPVgqv1Q8LRztc21glYpAF29b7/6c8PltEuNDpRKlDFNXiAT9pCyWZse5MH8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR18MB4293 X-Proofpoint-ORIG-GUID: 7Di4VjlVezM2ntjBoL65du88D9WTZWOp X-Proofpoint-GUID: 7Di4VjlVezM2ntjBoL65du88D9WTZWOp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-09-01_06,2022-08-31_03,2022-06-22_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Acked-by: Liron Himi -----Original Message----- From: Amit Prakash Shukla =20 Sent: Thursday, 1 September 2022 11:31 To: Zyta Szpak ; Liron Himi Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ; stable@dp= dk.org; Amit Prakash Shukla Subject: [PATCH] net/mvneta: compilation fix for GCC-12 ./drivers/net/mvneta/mvneta_rxtx.c:89:42: error: 'mbufs' may be used uninitialized [-Werror=3Dmaybe-uninitialized] 89 | MVNETA_SET_COOKIE_HIGH_ADDR(mbufs[0]); | ^ ../drivers/net/mvneta/mvneta_rxtx.c:77:26: note: 'mbufs' declared here 77 | struct rte_mbuf *mbufs[MRVL_NETA_BUF_RELEASE_BURST_SIZE_MAX]; | ^~~~~ Fixes: ce7ea764597e ("net/mvneta: support Rx/Tx") Cc: stable@dpdk.org Signed-off-by: Amit Prakash Shukla --- drivers/net/mvneta/mvneta_rxtx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/mvneta/mvneta_rxtx.c b/drivers/net/mvneta/mvneta_r= xtx.c index 6e4a7896b4..952e982275 100644 --- a/drivers/net/mvneta/mvneta_rxtx.c +++ b/drivers/net/mvneta/mvneta_rxtx.c @@ -79,6 +79,10 @@ mvneta_buffs_refill(struct mvneta_priv *priv, struct mvn= eta_rxq *rxq, u16 *num) int i, ret; uint16_t nb_desc =3D *num; =20 + /* To prevent GCC-12 warning. */ + if (unlikely(nb_desc =3D=3D 0)) + return -1; + ret =3D rte_pktmbuf_alloc_bulk(rxq->mp, mbufs, nb_desc); if (ret) { MVNETA_LOG(ERR, "Failed to allocate %u mbufs.", nb_desc); --=20 2.25.1