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 65EF3A054A for ; Wed, 15 Jun 2022 10:21:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5A5A4415D7; Wed, 15 Jun 2022 10:21:34 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2043.outbound.protection.outlook.com [40.107.94.43]) by mails.dpdk.org (Postfix) with ESMTP id 1528A40220; Wed, 15 Jun 2022 10:21:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DeROIZIAb3D8f59GMFlEv1stCdB4ap3bZPaxHUw03nnIQ75uLIoNOXuyMo9eQ4QC7zSMHlQjptrpJRDY43R9/yHX0rErhmoD9fH+Ha74ZHGbZ6HLkMppMwQ9T5RrFTiTd/X3QaZf2Zom2UKZ+3exCC+XHxucfcjpOgFwjpazKMyAvKznzlUWSzYYna3HYR7eUk2i1yVCZFs8zl/U55eu9k0qf1yyZY7jWuBixPY/F3dyPDfS6E5t0EiBYHv83N6j9GtrBNuTo8gmUEj4XtJ5GKlVGEbr8qMuL4vsy7eaISoypOV93XPk2pBq2hVjtxN448k1GZJ7rMutFn9V0E/bGg== 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=9vzLXOxVqcpHAr9HiMqDiXqVJK8Eg5SJEMnZJCUcbRo=; b=BBtwzG3Wde7UdC51A45bDqxMRGIJE2nFpqYwyQwlHL5d63b6HJG+cX4bFj++RoJzZiPB7KgVMQF4RTgwNQC8YXG7jXVpXwYbaQ3N2dhL+uAvWy4UCxBAQn744dHGCErbWfcGfGIRD3LI8LxIjCQ9sdSMg0cfZEZEOQwWqlMJ5K41k5+ZVHcl9hi5df2Emr73m6INrL0uJOm6ouy6ETAsKVXWr20IM3Fevupe170vwHI310K+jByTWCchmDDJefOvDsQhuQ+oHc5SbPauPSwwbj8qEcPbUEoxr4qJGwssONoKvLSAPEOh3aAh+0aaumWPOky3of81xKU36yIb1ZRxdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9vzLXOxVqcpHAr9HiMqDiXqVJK8Eg5SJEMnZJCUcbRo=; b=dgRg6Iul6hmU3xQfB+QiR2C0cvGnk8KErouBJ2RYHpAc7unvNYaRs4Jz37yp5Jzq1L3niWJURdaJrOsmLTJt/REfXe3jzo2b8qX8ALYLoIUf5TZktGiUfqa+FhSv9Ouc4Aqo3eluBIdW1lqzKxrzfgWG0xKdDjep9ETQnS3l/atW3eIAJ2ujrJYULd79J0yfkF/OPGsXP4DBNkgT/TG+0DNRGNaZrVhxsQeFnNgZRhXWRP6jAyh8vSa1ZW3oW/o9lX0U9q5PCbZezv/2q1v1SeUSzysagMP2nIBkQnOJn0bIO5cx8jNAiNS3XziLWoM4zY3ZWg3pVaYljsYzRcWIxg== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by MN2PR12MB2893.namprd12.prod.outlook.com (2603:10b6:208:107::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 08:21:30 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::8cc6:67d3:8b2e:ff64]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::8cc6:67d3:8b2e:ff64%6]) with mapi id 15.20.5332.022; Wed, 15 Jun 2022 08:21:29 +0000 From: Slava Ovsiienko To: Ali Alnubani , "dev@dpdk.org" CC: Michael Baum , "stable@dpdk.org" Subject: RE: [PATCH v2] net/mlx5: fix build with clang 14 Thread-Topic: [PATCH v2] net/mlx5: fix build with clang 14 Thread-Index: AQHYZVYZsjkzM4wL6UKxHWApmyxMea1QVv7A Date: Wed, 15 Jun 2022 08:21:29 +0000 Message-ID: References: <20220511135815.1564053-1-alialnu@nvidia.com> <20220511164109.1574109-1-alialnu@nvidia.com> In-Reply-To: <20220511164109.1574109-1-alialnu@nvidia.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=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 759abca3-50d3-4e56-b76b-08da4ea80c92 x-ms-traffictypediagnostic: MN2PR12MB2893:EE_ 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: cFtl1nMxk5rbwcKTteTSTYWGF02BQp0zIy1uZyyL38J1l6Y82p9ph0aJk3vGcrPFc022RB/PkLk8/xtG3MPmMwKSRhpFkOND43fIF1QPljl72E2W6FIAftcqMGIBPepdAl/EJ4Opmbvz7ABSBAZ3DKIa80loLXbYiCdw3RLGZfsWzXA0AAamcIl4yMgA9DuRcFluz6EVq9eyGOKe5Au0PcZDlgAaMy7pGn2nm4DLfUMVhuYg9hMQYKWh8wDy+rzuytFT3tS/o2SsFNuwcYfmb9FB2tNnmB8lsTKt8AigCh6dDsWTNWk6s/qDWE/xUwmWiggFdwxsnpg/kmHQaQPlgNQtAghzxKNhbXnMbQR9mCN4gr9odrqcmEcMTumOqP85e7OvnNTfL76s5KT1h/vUYviDuhKv5IB5NIs1tazil6Rjymilc+2ThUjBgltCR860Ng3g4WwYnM0SdlvLZgltLn3E7umJdAKSDUIM90kCMHkQY1xN2UI7y8UVDp1hRPws3q6TIvELgxHfdcrjujSNruBVi9msgiqh7Jv241a5ruwmHCuPc4ShJ3z49HV0ErVbLlXKJgoUPHTBubEPp8JgOhAO1fT3wqM50X5db5gKi+pl3vXpqTKW9KEg21U50d3RDBsJ/l/xoyCw3o7gAhlVOq4KZbyqjL1kFwSEya702Xpnpf4ZG2qoH9A8vOGVzGK2ZovD7fBuo6i3v1TkBXCY9w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(26005)(86362001)(66446008)(52536014)(122000001)(6506007)(38070700005)(53546011)(7696005)(9686003)(186003)(54906003)(110136005)(66946007)(8936002)(66556008)(33656002)(5660300002)(38100700002)(4744005)(66476007)(4326008)(8676002)(450100002)(55016003)(508600001)(83380400001)(76116006)(64756008)(316002)(2906002)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?rbceM5y5+9cT2q4sdticIKRc6/vd8moDp4eJYGn5g8sDxWi6bFbcCEud5+0T?= =?us-ascii?Q?a5evbfgQx+YqZviqaj8w2zyNivv0K7ZP96uGNgVko0Rn7lGH8tFBuX1fDBAt?= =?us-ascii?Q?EmT8CRWPM5LxdeF7NcbOtmRaOt+H0JlHjkHNbTNnembp3LVDMi1FUxBSPx7F?= =?us-ascii?Q?KfRoueKexI6+4fN9RKdd+2AF3IkBPtiSF76N6NyfozTw2dPDhMsgXdVlxFIO?= =?us-ascii?Q?H6NvYI+IP3FAitcl0TIklHgusM2TGdsSVt0Cxq0kxzhMqFluRspXNfQyUXOV?= =?us-ascii?Q?fC+jTbVTPkb/vvj5WBy2n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=?us-ascii?Q?cH0erdh1kGU0s/gFhNrvYfooKSM62ccYuubPTB4wE3Bv/XOEoTy2gsV0Itv9?= =?us-ascii?Q?S3YoIeZRR7r9eJaO/LU9geGFETH/CNV75O9vnHrvHXHnmHW+M2wlu332ASYt?= =?us-ascii?Q?jDXYghvNPzmJjrJScWbjA1w65UFsTRg5g/8GtLopg2U0L+aGgqkGOFl8JeO0?= =?us-ascii?Q?KEWwekutwyfjS0HyJw/keFqZjxjlSwNL3nHd13Eb8UntPyxN+wtI6ZVBjaZf?= =?us-ascii?Q?CRLcKAQKUG65G+AUtOqDAJe3+RP9sqX6ZWriuJ7wuuAwluH8BBkFQ+n4qGUH?= =?us-ascii?Q?+j95i9prhYAax5VWqgGZbQvMmKQrwzG7GmER8fHl+vH1oofTX5b/TKSff+iW?= =?us-ascii?Q?yt2AXJqJusebywtLb+0Z6Sab+mCyLpmnmW9va7zu2+ABJsRdct6RyxRfyIf0?= =?us-ascii?Q?7dS/PA8GfqrS83rZ2iN2xVMI3jL47MjsLIrCg8+29A9FRx27YoiET3+B9a9p?= =?us-ascii?Q?Z/NENIycH6t+heLacjIclKxZiZjv3Tu84oEzvdQn26hi+4fhnyMJYKELKp+v?= =?us-ascii?Q?yqjKK03HkA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 759abca3-50d3-4e56-b76b-08da4ea80c92 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2022 08:21:29.8291 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: sys8IeYUPQ4t9Po4Tk8dvmgiranSqUMKMyZ5etgHfJw9Zydyzu/Rh2UuWkD9Y1q1VnO6+30Ek8r83KnauezFLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB2893 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 > -----Original Message----- > From: Ali Alnubani > Sent: Wednesday, May 11, 2022 19:41 > To: dev@dpdk.org > Cc: Michael Baum ; stable@dpdk.org > Subject: [PATCH v2] net/mlx5: fix build with clang 14 >=20 > Use fgets instead of fscanf to resolve the following warning reported by = clang > 14.0.0 in Fedora 37 (Rawhide): >=20 > drivers/net/mlx5/linux/mlx5_ethdev_os.c:1137:52: error: > 'fscanf' may overflow; destination buffer in argument 3 has size 16, > but the corresponding specifier may require size 17 > [-Werror,-Wfortify-source] > ret =3D fscanf(file, "%" RTE_STR(IF_NAMESIZE) "s", port_name); >=20 > Fixes: 63d1db710fbc ("net/mlx5: fix unlimited parsing of switch info") > Cc: michaelba@mellanox.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Ali Alnubani Acked-by: Viacheslav Ovsiienko