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 54A2943B86 for ; Tue, 5 Mar 2024 10:52:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4DEAB410E7; Tue, 5 Mar 2024 10:52:04 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2065.outbound.protection.outlook.com [40.107.96.65]) by mails.dpdk.org (Postfix) with ESMTP id 1E64442D7D for ; Tue, 5 Mar 2024 10:52:02 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GkmOtRvjN2NjPWEqyJH9s35F2snJCiKCVU56vmAyFbJV4ihjbcNRy2zQfAvxGEl528UD8tumrnmh2KxbLWsi/sgx8J4bw9n+qR0e43CIZwLyH2/Jw2wnvD/onI8KAPAE9Tn4yJneeCd/qQrXx6i33PXra7AgsF6WqycQJd8xZyRupPLUN/9Q4jMjeObJJyMooJ77TFF5pNimoUewP0BaNZhnXNjhcY5jEgVrMPfren7DktAWz03nUOwOj1/F7fywdvl5m/NnPby7YdbzFZ6RVz8rsU2E+cytWh30fwFtfT1YVwxIM1poSuTP8u+IFgcPEqGoVr6THem6rt373tIT+Q== 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=yB9AxjWQ1WxDiikxN3jXY0LA/LjF/QXAyGM2Vx9M+6Q=; b=iKaI0/jLacCqlwDSXxMhQMQ5Ue68pjIQJvrDCI/PkaXCxOxDn643/EOrlNS2F+3waPkV1ErJEBkpCVvOsZSrm3a1gglYC5W7zkiypS2md9SjqrEPQr1zLYpSYFT2wRjf/wXj26hgGJyE/N0hFrNXovvIaysJJZYXjSFdQBAVwNeg0L4LPHRxnTxUeNbOLF1dfvhi7oootq3UQ+oQFllr42p67q2PQD9AbPkB9n7/1aKbGk9FIO/Do+QkqD95oND51wGeL6YqW8XV24EvBJTAxLl7piu7ivaxNm+AnW3kYD7FTNNCWwPvqUgCKaHMJLZxUrvB21+0Msvyu53HSKN4oQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=yB9AxjWQ1WxDiikxN3jXY0LA/LjF/QXAyGM2Vx9M+6Q=; b=MNnB2ZrOOviSnrgs096FoEvpTM28dV6YN1qYHBpL9BIvNx4WHO5n7Gp2IOayA4mOMfouGU6LpA1ncPX6pQfLUWFSr4gGxFwjqe6XttFT5ttGF98ikzrQd4WaS2fwt+qPMrI7B6wTlMw5wvbEx6sZ9JKzEX36J1BT9PyoYWiSjFen9IQL2y3LXsz4HKtklOSSoLVUjU6E0d5QWBn2gFBhFYU8aLhhSklgsTeKBTUPJw8MO9ZmGTkUahLwR8nlVR6f5x01MJDwC4Wi9iAO4hda3N6TJP4czWTQS8L8Nd6lQxqlVZpMUjoHT03D9TZSlOLEh5U0KSBxwWFG+lGL59z3lw== Received: from SA0PR11CA0088.namprd11.prod.outlook.com (2603:10b6:806:d2::33) by MW6PR12MB7086.namprd12.prod.outlook.com (2603:10b6:303:238::20) 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:51:59 +0000 Received: from SN1PEPF0002BA4F.namprd03.prod.outlook.com (2603:10b6:806:d2:cafe::a2) by SA0PR11CA0088.outlook.office365.com (2603:10b6:806:d2::33) 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:51:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by SN1PEPF0002BA4F.mail.protection.outlook.com (10.167.242.72) 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:51:59 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) 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:51:51 -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:51:50 -0800 From: Xueming Li To: Ferruh Yigit CC: =?UTF-8?q?Morten=20Br=C3=B8rup?= , Chengwen Feng , dpdk stable Subject: patch 'eventdev: fix calloc parameters' has been queued to stable release 23.11.1 Date: Tue, 5 Mar 2024 17:46:24 +0800 Message-ID: <20240305094757.439387-44-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: SN1PEPF0002BA4F:EE_|MW6PR12MB7086:EE_ X-MS-Office365-Filtering-Correlation-Id: 566b3f41-486f-4dc2-f835-08dc3cf9e6cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZVy5q/YKY2E6LkNe2F0xcJQtP0pApfssYTG3Hu/szVGo/tEHRAydG+lzyG++RqhKULPzX4/xolyl4eH0xlUyB0n/SEb4KrUarOnWVOqLh2vE9rf/VId5zzY1LuFRcLp+DjFq9QzIrIeEaxmyEsXl3iTOhFNsHaHqLk+5nhIwCqToZPFWmyOdNlYhxzgs1ydh/WwKRnrO6Og6RYHWKFyuh9nxvFeKno56KeTUgyD/KnrXNaVqfxtTB1ThdfykIkdWZMGPM95ZrfNi25Y3nbPaEcz6e5+GtYkJjNnrzPWpCQkCf9ZPJYAcWfMnJhpOpWmXTTTlndWu1VXfq/z2sKSnyqK3VFjOHGHLTiawTf1aABFkdr1SlepXxzxK0yy2BlVMFZveVbVHm0t3Cgz2M8r9kJGrdQBSd0D1j5wufHmnQtY5WCi+/WZYJXS+pU9jdAIqjjNAUqVf89YZU9gP1xY+y6+ydl6FaPzKyfgCOy8t7OV51RTcQodc4Yh8IlUoN9Uc+YMxGpt4L9Xy+TNJ6Fr8kRvVnw76nDQn7GIUM/yVhui2nr9KhupXlD4GQgkLqeeBkyEcqnDXkY2vCZD8bs5Q+MSmNRJb2/KMibsafsdvcEbDO6oLTUdfKFeK/1uZ9zTWI9d/VZ42Rr2udO7ikkrRAcBbhX76rWNYka4jP7niyHU+XKXEvX75+xFS+NtlnU/HiN6knBcst5yyhM+HYq472xflaIPHTrTnc//CM6yNQGd4bX0Em6kGZKDkAykX89rA X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004)(82310400014)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 09:51:59.5142 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 566b3f41-486f-4dc2-f835-08dc3cf9e6cd 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF0002BA4F.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB7086 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=9173abff753d14fb5da1ac6640c085ca3c6eb7d6 Thanks. Xueming Li --- >From 9173abff753d14fb5da1ac6640c085ca3c6eb7d6 Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Wed, 24 Jan 2024 18:54:01 +0000 Subject: [PATCH] eventdev: fix calloc parameters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit 09fbda36e495bc6f24fbe26d0909801107bee5f7 ] gcc [1] generates warning [2] about calloc usage, because calloc parameter order is wrong, fixing it by replacing parameters. [1] gcc (GCC) 14.0.1 20240124 (experimental) [2] Compiling C object lib/librte_eventdev.a.p/eventdev_rte_eventdev.c.o ../lib/eventdev/rte_eventdev.c: In function ‘handle_dev_dump’: ../lib/eventdev/rte_eventdev.c:2005:29: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 2005 | buf = calloc(sizeof(char), RTE_TEL_MAX_SINGLE_STRING_LEN); | ^~~~ Fixes: a3b7b476d723 ("eventdev: support telemetry dump eventdev") Signed-off-by: Ferruh Yigit Acked-by: Morten Brørup Reviewed-by: Chengwen Feng --- lib/eventdev/rte_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/eventdev/rte_eventdev.c b/lib/eventdev/rte_eventdev.c index 157752868d..1c865e993f 100644 --- a/lib/eventdev/rte_eventdev.c +++ b/lib/eventdev/rte_eventdev.c @@ -2002,7 +2002,7 @@ handle_dev_dump(const char *cmd __rte_unused, RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET(dev_id, -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.324709245 +0800 +++ 0043-eventdev-fix-calloc-parameters.patch 2024-03-05 17:39:30.743566492 +0800 @@ -1 +1 @@ -From 09fbda36e495bc6f24fbe26d0909801107bee5f7 Mon Sep 17 00:00:00 2001 +From 9173abff753d14fb5da1ac6640c085ca3c6eb7d6 Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit 09fbda36e495bc6f24fbe26d0909801107bee5f7 ] @@ -25 +27,0 @@ -Cc: stable@dpdk.org @@ -35 +37 @@ -index d494f8f205..ca295c87c4 100644 +index 157752868d..1c865e993f 100644 @@ -38 +40 @@ -@@ -2005,7 +2005,7 @@ handle_dev_dump(const char *cmd __rte_unused, +@@ -2002,7 +2002,7 @@ handle_dev_dump(const char *cmd __rte_unused,