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 0150A43B86 for ; Tue, 5 Mar 2024 10:52:32 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F027C42DDF; Tue, 5 Mar 2024 10:52:31 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2043.outbound.protection.outlook.com [40.107.101.43]) by mails.dpdk.org (Postfix) with ESMTP id 3F9CC4014F for ; Tue, 5 Mar 2024 10:52:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a2sfIdRMYDW4cSvZD/i6l0Jy+0zUHoq3K4l2DvAhdhDBGGuoH96ImY7HkXSW9bSchmeIx7k922CCTqNaBo2otFVQxH3ug93hNFP8Ux2pzLQk2zdCScML7LCa3OOrx/BwV7I8B/MY7oruwUdl+gZKKAEMGJWJe6UnWXMK+Yu2IxYoXSJOBmb3R9+zYczKcsdxEvN/Y4byUJLoM3ntpU4IF3FMrrQEsf8s8xyPJ28DUAONfa+KS7h5N8Lj47fPyLqW9fBV4doowEC66Krz7bY8NilropIMBbcC8Lgly1/B5tUK7ICdrNkUkUaSyEKLopKdiM8VbYVnLdkbafaLRUoeCQ== 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=+nmIEZj3mUyaNbhw+3PXIMXUDzyAhJtd+q1Jl7FB4KY=; b=JNSyhemwMS0Z2aarbCDgx0m80ezCkgR/8rlztU/6vfW/mbj4lR0+DgaNIiCf6N1n7MWn46+zeEXO1SvhdwrPezErJ+ZdoX6X8DpDa8Wqnob6bQLtCEO5SAwTj8t0jOT0XVN0Z62restnET+qj48pYFwGr+S2zWPkTDxFo3t5WM6YwkqVzRE32RTIeDIqESyVFUbADFt+04mpQ/KAblTmDMZuE3rZ/1SfT2eHO2G7KV4xl48zfOUcuYGtuXAi1q4l2wlbjG3a2QL72q1Qv+bKyfz50t4kOx8XN0GsAW8BxrqZecOjiBBbm/L7af0iJ2u+Hk05ZSZDfI2xiZ1A11u91A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=amd.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) 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=+nmIEZj3mUyaNbhw+3PXIMXUDzyAhJtd+q1Jl7FB4KY=; b=liTfsmiXlEiiYA1TvovXEID6sihvnEkm4quCf7/VwA1rn5DfgpQPD/fMqm+J/rqEv17/8kUCf1WAI8XlBTbnghfEUXhHUC9TCVdx6ARmcZ1NzTdeC+N5kc0vXWw25om5IZ8HRxG5Kf95K4LGMVJhkfAkxx7eFdFLQyXA4N21+Eoen+dJ/I4XXyJxaU1YIJbVBCwhqghodF9GdmlyGCCyFTDaHB4oTHTU4iNytzVHgdBnq3n3f+em6UD+FCgj9XEg1pXvTmH9IuLLh5fyaVlUPm9I3eaP0XJBBghz+9afiEs9ocR1ZautytKLm3qq0U0xWWYbkdPP+sSSDdzs9c1/MA== Received: from CY5PR03CA0025.namprd03.prod.outlook.com (2603:10b6:930:8::9) by CH3PR12MB7570.namprd12.prod.outlook.com (2603:10b6:610:149::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39; Tue, 5 Mar 2024 09:52:26 +0000 Received: from CY4PEPF0000FCC2.namprd03.prod.outlook.com (2603:10b6:930:8:cafe::78) by CY5PR03CA0025.outlook.office365.com (2603:10b6:930:8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39 via Frontend Transport; Tue, 5 Mar 2024 09:52:26 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CY4PEPF0000FCC2.mail.protection.outlook.com (10.167.242.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Tue, 5 Mar 2024 09:52:26 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 5 Mar 2024 01:52:13 -0800 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Tue, 5 Mar 2024 01:52:11 -0800 From: Xueming Li To: Ferruh Yigit CC: =?UTF-8?q?Morten=20Br=C3=B8rup?= , Chengwen Feng , Hemant Agrawal , "dpdk stable" Subject: patch 'rawdev: fix calloc parameters' has been queued to stable release 23.11.1 Date: Tue, 5 Mar 2024 17:46:26 +0800 Message-ID: <20240305094757.439387-46-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240305094757.439387-1-xuemingl@nvidia.com> References: <20240305094757.439387-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000FCC2:EE_|CH3PR12MB7570:EE_ X-MS-Office365-Filtering-Correlation-Id: 29f76b80-6015-4c09-f790-08dc3cf9f6f3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7+iweiSDa0i7955K7vg8K6ZB63J18LkmVuDfZIaKq0m8P4YnKY81iZI2JctWJ6AenESPKCQKP9EdEt9ZPkF0uZ3Yad74BaIZMc/IuStlbzV309tOifs30FeJezNQx4viFg44kKpG7dbDqAkgZSZZI4AUZxPKOv7OLmSJIAE5mePQT10UtruH/I/5d7ogocx6LgoyGkeUyYW9JRK+IPIgoVDNwjpqS3Od45FnF63Ku3+FPH9T1uh1SQSq1fiuDeEneJTUQOWSqQ2eMAoIYaalUPNgY8stDhNaONONAdUD9TaNAfjn6F4goz1qFJPHNiJ/c7TgB3nZY8r/9zZWnNEGxQs+yHBZbjyfLcNmSgwWx6xF8aBFe26VsPsYMItxo0WWvKw+Ijsyv4dSLxawFjJOmSeuPvvjsvaLhsJCHYZLbZ2Cff5qmL76+i+dK9p1XOQzL/rpHoVg9uVM6NeKhcNnHK2AHIGixxYrYcfFJm+296Ft9RUxUM7B70GazYIsJfocQi9GqDfI3HNlezC3Kq8JlgRh7EEgWQ2VDKBV1h2PI7Xxr26kdPwnx6xdaCbqIIfSkbL1EaztNfmFfVglQAv5lJ/YPneCzCGCw6/Cxi+GTegQjG0GbsvkXmidaBdmTtMLGCcCR5zpk/FX36guT/IP1AE/DmXzxemYcJIpcx+0qOrV+Mf44XqfGvRTlkvxe478NkqdHuK97UlzbwB0wuDq5zhvKbQ97yHANEljF+a9JYH+tj0CUWjjulOlg2/d7MDg X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004)(376005)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 09:52:26.6068 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 29f76b80-6015-4c09-f790-08dc3cf9f6f3 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000FCC2.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7570 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, FYI, your patch has been queued to stable release 23.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/31/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=7c10528d681e4cd7e5aeb0b14466ca71905b0c2e Thanks. Xueming Li --- >From 7c10528d681e4cd7e5aeb0b14466ca71905b0c2e Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Wed, 24 Jan 2024 18:54:00 +0000 Subject: [PATCH] rawdev: fix calloc parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 37ff33833b6b8932bfbc8e149d386ef23ccdc54e ] gcc [1] generates warning [2] about calloc usage, because calloc parameter order is wrong, fixing it by replacing parameters. [1] gcc (GCC) 14.0.0 20240108 (experimental) [2] Compiling C object .../lib/librte_rawdev.a.p/rawdev_rte_rawdev.c.o ../lib/rawdev/rte_rawdev.c: In function ‘handle_dev_dump’: ../lib/rawdev/rte_rawdev.c:659:29: error: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Werror=calloc-transposed-args] 659 | buf = calloc(sizeof(char), RTE_TEL_MAX_SINGLE_STRING_LEN); | ^~~~ Fixes: e915d404eb72 ("rawdev: support telemetry dump rawdev") Signed-off-by: Ferruh Yigit Acked-by: Morten Brørup Reviewed-by: Chengwen Feng Reviewed-by: Hemant Agrawal --- lib/rawdev/rte_rawdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rawdev/rte_rawdev.c b/lib/rawdev/rte_rawdev.c index 474bdc9540..4f8897b639 100644 --- a/lib/rawdev/rte_rawdev.c +++ b/lib/rawdev/rte_rawdev.c @@ -656,7 +656,7 @@ handle_dev_dump(const char *cmd __rte_unused, if (!rte_rawdev_pmd_is_valid_dev(dev_id)) return -EINVAL; - buf = calloc(sizeof(char), RTE_TEL_MAX_SINGLE_STRING_LEN); + buf = calloc(RTE_TEL_MAX_SINGLE_STRING_LEN, sizeof(char)); if (buf == NULL) return -ENOMEM; -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-05 17:39:32.374030346 +0800 +++ 0045-rawdev-fix-calloc-parameters.patch 2024-03-05 17:39:30.743566492 +0800 @@ -1 +1 @@ -From 37ff33833b6b8932bfbc8e149d386ef23ccdc54e Mon Sep 17 00:00:00 2001 +From 7c10528d681e4cd7e5aeb0b14466ca71905b0c2e Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 37ff33833b6b8932bfbc8e149d386ef23ccdc54e ] @@ -26 +28,0 @@ -Cc: stable@dpdk.org