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 917D0A054A for ; Wed, 15 Jun 2022 12:08:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 804024282A; Wed, 15 Jun 2022 12:08:26 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2089.outbound.protection.outlook.com [40.107.243.89]) by mails.dpdk.org (Postfix) with ESMTP id 4321440040; Wed, 15 Jun 2022 12:08:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ag/DPvxE2yUc8LjqiSA7gyzdr9POyu82fMsN8QSmu6ya0F6K1uVwQYpwx0U+iRm2Y2X2MLOmqyYP2sJF1aS5vNM5hwRh5OVLkDsU8Ih0Yam/YCx+v+jfr+FB17gy3AQNW2X4t2YTggVwBS1pzsMKIE8ci1kD42cZ95TM1HsltzlWLdOSuJVEVeB2Fgik5MT9dOsUwx6xhOKGaQK/gP3yqu0V5DlNOHm6yYiJWbaj/C06O87/37lsgAX/9E1wLkDprhUso9BaMYYPjXOXOamV0ZPzyKyp+RRBBpAkWw22uiXOTvGNWtN7MPCa4GykPxlEMKctKehVc/dkQytlBJfcUA== 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=Su8gZDF2l5vIxlt40NYqbaA9FV5b8zN72A59XzfVwQA=; b=B60bloYcCpaeoydfS8UaDvZliRINhx18NQxf3z6ku3vKPMaSAEu2J94dbzgsvt2sUTu30mZi7IXeVQjN1wQxptmTuTr+X+rVqcjAnFU6RKBFFJwBRjIgq8sLqZ36yVutNMRH60VDej/hD/MFZt78kBFB736BsLEVj2v7mg6wnBwdq8H6fKhaZE83Yvx3meDvpd5QMMN9+CpJ6tk1588EhYJXtV393R8Fl0URelAUuD1mu+VkkbmWS6MqsAUD7kRDjyyxFKZjw0vt9fqjtvXxwh1FRaxZY5ZZ10FwQ3lSXdv6IXzfMQvhLQxBmeYS8zRpE/R8qr9T15V0z17JDMP9xA== 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=Su8gZDF2l5vIxlt40NYqbaA9FV5b8zN72A59XzfVwQA=; b=SuLxlivV68MyUABat+pLW/peHgSAxmeaAc2rEy/9KqwuIZsFFQYgsfnmajUJgPJbRxyME9BRBqqpb8u7VzrAc6RMES0FARyz+Eoxj80a2wLA9yMR4JDMmcuHsqq3dU+8ISBbE2rEGGcxQ5/qExy/+gQPOfzS7FEsdbvgqiTQyhM9t/UfOvfWMiXOHbygaXLWvK8tDAcov5gdF7fXLsxn7Ii8vcbuvhQqUrkb0glNE7ZwtvDu8x4f5y2UzgPktdJfL3ek8NTBRevxjo220aueAIV5p+hpZIp0ZRln2ozalnVdAIS5bcSTCTMcULrj7OgqxhWqoXtQdyAGE9tksAU//w== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by CH0PR12MB5298.namprd12.prod.outlook.com (2603:10b6:610:d5::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.14; Wed, 15 Jun 2022 10:08:22 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::bd2a:f22f:f435:7b36]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::bd2a:f22f:f435:7b36%5]) with mapi id 15.20.5332.020; Wed, 15 Jun 2022 10:08:22 +0000 From: Raslan Darawsheh 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: AQHYZVYSfuQkq/eavUS7zXdbr0mtBa1QdOsQ Date: Wed, 15 Jun 2022 10:08:22 +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: 708c1f17-6ed3-42f4-865c-08da4eb6fae1 x-ms-traffictypediagnostic: CH0PR12MB5298: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: /pfminXR/+rGvbqRDqzxddxqx/euvLWISTyfj4g/cYjC/sml34i/4yOCWp9McbJJPboSEBQGJMG5uFuS7W1s1vXTq56rgv43coJS0kRPJQ/7mUPxbyaq3jGdcElKJZQnhq1fXdQlzl3uQIm9y0Vr4A9p1GSssQFdjq6dhCSBuuGCcy4w4ey6L+NLR1TYKJfla2lBIcu3FOlfE8q15HbfNhqZZEdMyhD3jjbydZanmzASGievoyFLjStJd5iaTi9nNE5EeuNMfcQTach9AAY0NSwj1svoytZqsrVSCR4OdkbhgP5+dGL8MEWoGsd48NJ82L0t8lcpUBNVOapSEq2l8eDJgC8+CmzBYtqu3l6l67VHVwDTq2vhuge3T6vWtpM74ob3fIEND/+zMQ0MZ+wmv/yN1Sc+Q3DrGEL7KPosBuoyLY9zhCd9tZmjImgTPmLfLAWx+juwDq54eKb/w7d10gd7UWSO8G+kyq7ROQ5RTGlRA2Wt9iqDH+VD+b7HUdMfgI+2gqe6/6Oz+I/2coWU7UIwre+6PCAg70KCY/UKIGrh1HBLBbBp72EAnm0Z/KDEV8UVDSw/3LHPMkx4oPTfCNzN1zbIRvfJWY6wFLI8hGdazHBk0mc7+6heQxX4r1DIs1V+Ibp9RuWpK1PSZIZaQV5l92Hqa4OapINeydspAxNNU27s/5HrOwv0UytDNd9I/xNnHN7YKNG1e4A6Vy1cYA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(4636009)(366004)(186003)(53546011)(86362001)(450100002)(7696005)(4326008)(66476007)(71200400001)(83380400001)(6506007)(76116006)(8936002)(64756008)(66556008)(66946007)(9686003)(33656002)(5660300002)(2906002)(4744005)(508600001)(26005)(8676002)(66446008)(38070700005)(55016003)(54906003)(38100700002)(122000001)(316002)(110136005)(52536014); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1U/KDx5na8+B9oqbmitqiHI9/wn0vgP6QpjDq4T4N8JuLY2glCEjJwajg3sS?= =?us-ascii?Q?jCDxjxwk7ilEKza8/Q1JKySSTK9yPBrF52+wGXamRoCL0LgZiR8xx/8BQs4Z?= =?us-ascii?Q?Y5LL+j24JzKYHOJtBSbud/K6AHQfJewYjkCEOOACxu6uPI+Tm17P2tQ2rKiN?= =?us-ascii?Q?brDATcqWDxr7s2QiSW9suK9Oh6yr29BNC13b5tH2+qEWtN2CDl+vOcsqAr7Q?= =?us-ascii?Q?8UO13mjSoucMkGVtVTQG/KTtR7tzjPTuT6rWMd+ciQeWXYlnxT90xqw7NcM8?= =?us-ascii?Q?BIzZiefFvuaULRH34m+WBKSvIVaHQlASwYA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l?= =?us-ascii?Q?ZB0+SVAm4KS1W+J83Y48z+ZYpiNEewg/sLKOwf/uumHDKeZ6MJ9ikXuBj2nO?= =?us-ascii?Q?wBRMSskHh7yIz3tBDG6n/AQnQ59HCid76JPYmK4HZ8EAqlCvvBkBK2FRZipv?= =?us-ascii?Q?dEZTrUDpp3UjJSq9GLjLRiAPWMGn9QFva9UEma02hAt7JWxY08pFMJPB0EiI?= =?us-ascii?Q?bn/9Xido6exUGgBu5rSRm+Uvjc0a8boFGyD2FpvuV42JSvccuu8nn4JcS+HK?= =?us-ascii?Q?Z4AZOwUrb0rhE39SbLsrKsu/UApxrMcQ2aWMa4n6N9SFExa2BrhlkKyumZ3I?= =?us-ascii?Q?mAWM/O5fXS54jMrfwmejeavrEW4KzodwmAFZSPNWYMBs6ZUYVtoexDd3rfnR?= =?us-ascii?Q?ocUHvxaARN6QWdHCALT6f77LB6GRssFcZVc69FVFsF0UlQwXh+UVckg5B3K6?= =?us-ascii?Q?Qtff0umj/8O/t8B63u5c9QFWVzswqHd9ow8xi0kVbi30/2RcSZ0Jqvp/fsuI?= =?us-ascii?Q?0NnTgJW0YGR3K9q+LPWQmVtkAPhbBbaoqyUhs3dZbpeqci3c0ZRPWN34xbn9?= =?us-ascii?Q?NeQRxtUXUw=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: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 708c1f17-6ed3-42f4-865c-08da4eb6fae1 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jun 2022 10:08:22.6132 (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: JTt/UvXGaHKlpKzO1eN3M9iRZgdrnMIT4g1C3WcCcD0/LHq84fnb+458x8+vnBEw3v9RKiuY9quG9itQT9PlRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5298 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 Hi, > -----Original Message----- > From: Ali Alnubani > Sent: Wednesday, May 11, 2022 7:41 PM > 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 > --- > Changes in v2: > - Removed unnecessary variable. >=20 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh