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 228DC41D8D for ; Mon, 27 Feb 2023 08:18:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1923740A84; Mon, 27 Feb 2023 08:18:34 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2060.outbound.protection.outlook.com [40.107.223.60]) by mails.dpdk.org (Postfix) with ESMTP id A121540A84 for ; Mon, 27 Feb 2023 08:18:32 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jvo58TL2CZVUdgKhI5NA/MEcbfbQLO3KIgZWdVcsCLVUuIEZqPC/XADomq+i2rnx4gBP6Bcy/usNDuCjP4POQbVshCDPZ3KePNVakIwPhriTFBQpiXBau4WkJ5gr8m0IeDpLD/+c6TeAvQjtT/VA6BB1nJG+ZhmNMHSkdVhrEBC24J8+iM8iR3U19BFPAp1SpuVDzZb/SU1iOlemFqh4SYmMeZrP+eQF9SyBctz7JucSkM+vWLzY6TCDJ7nn8gUud6mzR+UgD3L05KJthW54xQ1gp13erC8UHcYPDszl+J2gzJToE+GABJYqXS3S50Y0WHkTeentiKEFz9/UEdNgFw== 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=Hc//ZJumILQJIO0B4IOD0iL3WgF9iWtj1KM2EbEKwlw=; b=WX616Ij7D11FgLujFHjtorGiaohESPEY5VaeSEQU0jLBcsQ3O9IzJN29j8iRZrDob9PL/EPenMzG5C34RHKDghN/TaevJ2eZ6MN5dMnIttoQvcZ+/4VnMlbG4Qyn6MTULSDd3ZG0R85ghGWr84LBjTFppHT4QBeXwf5fvPXUJ4xCXeL70aWokDPE5uhkTUZJu/KrTknOZt2xL1UtkLPbds0TqzsdVlME6xEHclW9W70mK72sGUt2szc7jYCQy8wfcDhkQ7pdIn0tdx/72mBFsWTIQ1bHVaEPWMNOEGr2Xi5oClO6kU1OJhlllenE2qeLwtczKBjDHjfPg3LXpa661Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.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 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=Hc//ZJumILQJIO0B4IOD0iL3WgF9iWtj1KM2EbEKwlw=; b=nGMiRKzufjI07KkauIky1Tau9i7ixu4mzHMSM9njle3u2B+aylt5ptFK28O4U6xjyux/OiyC2FP4k431UnZEVkISUFV+thulcWPRMVSw6u2UbDHf1g/n/5ok5Hk8wi9f1tcUks0XwuhcL1G34hmwpbFRumSTeZQR7+wKpRIW0dDiDML8GME0kTLsMwsDyvzgOUvLbnqjSpPiwvHY0bdVTHUb6aYvqpyY7pC9EBMzpoNzTOGZJ6LUFGd/0HwClbKWJqWp/3P3UJtYq42eZOiDb54SXkzcogBySTvDr+zOteMEuuwZdnDoW5+kTXlcvG+e37RByjD0OMUi334T/HIVMQ== Received: from MN2PR19CA0007.namprd19.prod.outlook.com (2603:10b6:208:178::20) by MN0PR12MB5834.namprd12.prod.outlook.com (2603:10b6:208:379::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.27; Mon, 27 Feb 2023 07:18:28 +0000 Received: from BL02EPF00010206.namprd05.prod.outlook.com (2603:10b6:208:178:cafe::61) by MN2PR19CA0007.outlook.office365.com (2603:10b6:208:178::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21 via Frontend Transport; Mon, 27 Feb 2023 07:18:28 +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 BL02EPF00010206.mail.protection.outlook.com (10.167.241.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:18:28 +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.36; Sun, 26 Feb 2023 23:18:07 -0800 Received: from nvidia.com (10.126.231.37) 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.986.37; Sun, 26 Feb 2023 23:18:05 -0800 From: Xueming Li To: Bruce Richardson CC: Olivier Matz , dpdk stable Subject: patch 'examples/cmdline: fix build with GCC 12' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 15:01:06 +0800 Message-ID: <20230227070107.15664-158-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.37] 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: BL02EPF00010206:EE_|MN0PR12MB5834:EE_ X-MS-Office365-Filtering-Correlation-Id: 34616dc7-c460-4e7e-c050-08db1892d2d9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jWI/BRKm2U98DziqXkLwv3qNo5a6Yi3ZHBBv7DukCl6T6BTx4F27PUAfNq28j3M16Vea3l14CzkNI21xvqbYvQQ+/cXBnFXAEls18BsDg3+DW4+x8XoxHbsaR4NhFJvM1fD98P4iwW/1x0WtvhcK/oA9XdqUWqc39n3gvtkx0Z8vsMvPrrl+XCC0M22kwFeuReVdGpRZgxTH1nWoyREzVOQenhOGligKiUeiMMkDgk66P/xj3a8dUrxdBIFaecWVdzxnL+QGzL+0/291993JpAt0xS8EvQiLu82mIaStiq5Z945wM3EO9sk/AK/8PsiSUUYQNp0xAMuE2QIZ7a29NLXNGHDva1Os0NSXv4vZVhQ+/UEfeh1XbGTofj+gfMhZB0vBpmAe0Ux947mkqZEdEmq7H9LiIbzPUEbHTy0qiqTPbVN71nysEj0fneK5lytENESdeajGVFTHmHFRqQtCkn1fZcV7SxhOJ8QuxQNAON5ncbA6WdB//UEvSrIvH9Uqtr8erVe9NC70H3qu7ry6k5t7DUCQaLLvf4IuZcaHkDG/3AgrooPzVhgTwWQulqwVKTKU99mZzi9yrL/hxVzqOlQj1XYnHfGDpZhO6rItJljVdAPNJ0OdZB/m0cq5tctdvprPMvISXCkcujMfviGwMW0yorEyHeGMuFH5QiesZD0uPP75vcPz9rSYGuzqjtkTuYzVK+CmoEZqauqov9lKKvrhuzbZvyjl2W8ijRc8zkwACeCQ1+d+ByWfP1pstKwaiwislxB0zFDBylWHapC66B1612w9AZR9EjnnHp8mUkY= 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:(13230025)(4636009)(39860400002)(396003)(136003)(346002)(376002)(451199018)(46966006)(36840700001)(40470700004)(83380400001)(82310400005)(8936002)(2906002)(36860700001)(5660300002)(426003)(336012)(2616005)(47076005)(55016003)(41300700001)(7636003)(70206006)(82740400003)(70586007)(8676002)(4326008)(6916009)(40480700001)(7696005)(966005)(86362001)(16526019)(356005)(6286002)(186003)(36756003)(26005)(53546011)(1076003)(40460700003)(478600001)(316002)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:18:28.2960 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 34616dc7-c460-4e7e-c050-08db1892d2d9 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: BL02EPF00010206.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5834 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 22.11.2 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/01/23. 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=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=ecb065fe53917eba11d1a9c34f6983de3f45a48a Thanks. Xueming Li --- >From ecb065fe53917eba11d1a9c34f6983de3f45a48a Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Wed, 18 Jan 2023 16:11:11 +0000 Subject: [PATCH] examples/cmdline: fix build with GCC 12 Cc: Xueming Li [ upstream commit 2ba8d0adb06f92ef73bc8e3953ca45b7d322c823 ] When building the example without libbsd and using the DPDK-provided strlcpy function, a compiler warning is emitted by GCC 12 about the copy of the parsed string into the resulting object. This is because the source from cmdline library is 128 bytes and the destination buffer is 64-bytes. commands.c: In function 'cmd_obj_add_parsed': rte_string_fns.h:61:24: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 64 [-Wformat-truncation=] 61 | return (size_t)snprintf(dst, size, "%s", src); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:894, from commands.c:7: /usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: '__builtin_snprintf' output between 1 and 128 bytes into a destination of size 64 Multiple options are possible to fix this, but the one taken in this patch is to ensure truncation never occurs by setting the destination buffer size to be the same as that used by the cmdline library. Fixes: af75078fece3 ("first public release") Signed-off-by: Bruce Richardson Acked-by: Olivier Matz --- examples/cmdline/parse_obj_list.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/cmdline/parse_obj_list.h b/examples/cmdline/parse_obj_list.h index 6516d3e2c2..1223ac1e8b 100644 --- a/examples/cmdline/parse_obj_list.h +++ b/examples/cmdline/parse_obj_list.h @@ -12,8 +12,9 @@ #include #include +#include -#define OBJ_NAME_LEN_MAX 64 +#define OBJ_NAME_LEN_MAX sizeof(cmdline_fixed_string_t) struct object { SLIST_ENTRY(object) next; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:45.899742400 +0800 +++ 0159-examples-cmdline-fix-build-with-GCC-12.patch 2023-02-27 14:08:40.969237000 +0800 @@ -1 +1 @@ -From 2ba8d0adb06f92ef73bc8e3953ca45b7d322c823 Mon Sep 17 00:00:00 2001 +From ecb065fe53917eba11d1a9c34f6983de3f45a48a Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 2ba8d0adb06f92ef73bc8e3953ca45b7d322c823 ] @@ -27 +29,0 @@ -Cc: stable@dpdk.org