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 BB118A0548 for ; Sun, 28 Nov 2021 15:56:55 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3F744068A; Sun, 28 Nov 2021 15:56:55 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2069.outbound.protection.outlook.com [40.107.236.69]) by mails.dpdk.org (Postfix) with ESMTP id A669D4068A for ; Sun, 28 Nov 2021 15:56:54 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Cntfc4QcKOYpoBknhMnXKCasgeNyaEQcT55R6836JQPXrHwYI4S0llajkMK+FG257shkRUAHI3MKqFK2ylwgtjHrxZos8RNxZoPdPjSnvDz274jv6Nvy+sKXo4dmDoTjwvuUrhd4M1tG5kEFVvkwm61zyzCq0hwZr6MQEqPZZsRiLY8Zhc2Eu6hPTInLmo6S56+7CIlwi7apNwDfvSg561R5JoK3XVMVE4AK3osM3nfxOuNPL7q08GGyH2a++A8N9ldv+McZRPGsARS0bL6jnNuur4IkHXmSPs2SP1QcCwxv+KxQjzy6idxnIuTDLL+dppekRPmGd/EDGZf0ekmdgQ== 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=T+rdF18tBuKETdtcbg/3h+wvr/nZ3eQ+NfRTJ6fs5fA=; b=DSDdH/AyIXgtLhwmrCd0hk6hi0X+XRnGBz8u140Og1Jm0Yn4YAgu+kOjZy0ghwV15E3kQK1Yy3hqWJX/+tZPO3B+tah71KPM5ywNiHQptP8UEv3xaUJRgUFtK1Vl+LmCfR/RnNWoYLqJtIWrtufSGzSZvExsUrhhJxne/SYzFiZziFTXuMs7klXBvYmESNNuRLhEiEwXTX+OvFTpOOs2RaGVftHOibrS5eshpyEhrK9pfXAEDesHr5gTQdIX8Bwo94+/UTvFSMYqCH24s97AGQB6AOcXVQyyoWIC10Q+EfmO3UgxGHf1+VOMCEXCpECF3Fu58fErsvKkvcsMdaAAgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=T+rdF18tBuKETdtcbg/3h+wvr/nZ3eQ+NfRTJ6fs5fA=; b=pGA50P6uuR9VstW82OgjcEl6jp+snf1TrWzog9cH6HtuT6/ONT8VzsjHN9JAVsNKvoTZoZJELDB1qkQgjjLGaeoYDsqWROgo7Do76rauEqfbnJdYUVztfHVHHmLbKtDGaJ3xmKIRPgT9OvhFIzIByXqWD9Ks8SqCWw4P3zCYIq+nfbHKpk9McrKoJF1bLMveJVaQ+AZHqeD1OR5tdRp3Pw2MzdBRNzsr9tXeKhrpI/4N1HKFBUVh8g0B4FLwrPMUMxQhNbNsguCCEPqIDseQfpM2QIRanqVrmJbFbZ9kWf0gOtdwcrOxfs2xa8xnm8k8Ts+KbDttz57rfatyCnABqw== Received: from DM5PR21CA0063.namprd21.prod.outlook.com (2603:10b6:3:129::25) by BN6PR12MB1553.namprd12.prod.outlook.com (2603:10b6:405:6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Sun, 28 Nov 2021 14:56:52 +0000 Received: from DM6NAM11FT033.eop-nam11.prod.protection.outlook.com (2603:10b6:3:129:cafe::e4) by DM5PR21CA0063.outlook.office365.com (2603:10b6:3:129::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4778.1 via Frontend Transport; Sun, 28 Nov 2021 14:56:52 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) 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.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT033.mail.protection.outlook.com (10.13.172.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4734.22 via Frontend Transport; Sun, 28 Nov 2021 14:56:52 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 28 Nov 2021 14:56:49 +0000 From: Xueming Li To: Conor Walsh CC: Luca Boccassi , Liang Longfeng , David Marchand , dpdk stable Subject: patch 'net/hinic/base: remove some unused variables' has been queued to stable release 20.11.4 Date: Sun, 28 Nov 2021 22:53:22 +0800 Message-ID: <20211128145423.3974892-19-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211128145423.3974892-1-xuemingl@nvidia.com> References: <20211110063216.2744012-1-xuemingl@nvidia.com> <20211128145423.3974892-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9757b42f-79c0-49e6-afd7-08d9b27f5012 X-MS-TrafficTypeDiagnostic: BN6PR12MB1553: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eQLuh9sVHvb5GuxjDqiwjLoREBqUXb1NFYavbnqX3SilA2s3lhSCe4MRY895mjX+Omdcr9uaGMgLznamZEEY1rx34Bm+WwndISsWSU4zrJQOlsGz4UuU/xP6yW4UcA1b8PpwBW3/EC8DiHgRSVSa+h6Wcezyeahc/hYGVozaj5vW2qnMU3vff7it16iBcktJnoopPyR2Ngnjfaa9FqS1/CU8tZZoIBtTZH9g9pEujhcGgqdU06GbPHoAb5Kp2vV8Nwvc33pNaUZOT5m0SinZsf4aImaKPFS7h4A14ueEPpSdUgrfY+BuoEPDwa69I7k9ECkb5N8tcsJA/kJuKnvgM1wdPhxDLE9dSZCTstijn2USEQvAdbVVc/Nm4dzl1vPBxtVuez9SvcPCoB4lCz8NcMzdKuVWHRO5NXG/1jrkGLmNmpYOHprgxULWoGcjYDh8tHyvrbaAbQJhmjr0ZzooQhjnuhjGia5uNTndJtS33ZK0iYTTwfkgjL7hgj3SG5cQ5bqOvakAH2uko+krHw8eri6GJeDQcb/6Rd5SS670ogAkwPkt7OmeKImjbebAjMQlQRFsSB4prYdEADdEG9TBchw3jjVgc/8MWDrNez39+akZ0LF9vlU9Ck5YPKe3t5Y4A1bVIucbyTlx/fiEAvjlC0dWtn/IhWJMTgqwTKFQAeO29JCMC5606FDGAMiO6VlRtfz9xM8LnxOveLChNfIa3aXo1b5ugN01M/8y2LH2OVbp6stJKiH3wHIB002rTsVK9wlrulRxl7Ba1owUGhDs2njnz3VwCd09HYUAXurZCJARggDvqOOvlH25GHxAnkRih2inS+AnW+prthsDmPAPsg== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(46966006)(36840700001)(426003)(8936002)(4326008)(6666004)(6286002)(508600001)(966005)(86362001)(54906003)(2616005)(316002)(4001150100001)(70586007)(6916009)(70206006)(2906002)(1076003)(336012)(8676002)(5660300002)(36860700001)(36756003)(16526019)(7636003)(83380400001)(356005)(26005)(47076005)(7696005)(53546011)(186003)(82310400004)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2021 14:56:52.2539 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9757b42f-79c0-49e6-afd7-08d9b27f5012 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT033.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1553 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 20.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/21. 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://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/0a475878ef6515262697693a22274091b98ba014 Thanks. Xueming Li --- >From 0a475878ef6515262697693a22274091b98ba014 Mon Sep 17 00:00:00 2001 From: Conor Walsh Date: Mon, 15 Nov 2021 17:58:54 +0000 Subject: [PATCH] net/hinic/base: remove some unused variables Cc: Xueming Li [ upstream commit b5dedf261c907df478413f5c9e4ba97fc568bb4e ] Reported by clang 13. Bugzilla ID: 881 Fixes: a4957d87e05a ("net/hinic/base: add mgmt module") Reported-by: Liang Longfeng Signed-off-by: Conor Walsh Reviewed-by: David Marchand --- drivers/net/hinic/base/hinic_pmd_mgmt.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/hinic/base/hinic_pmd_mgmt.c b/drivers/net/hinic/base/hinic_pmd_mgmt.c index 9b399502de..6ecca407a1 100644 --- a/drivers/net/hinic/base/hinic_pmd_mgmt.c +++ b/drivers/net/hinic/base/hinic_pmd_mgmt.c @@ -133,16 +133,12 @@ static void prepare_header(struct hinic_msg_pf_to_mgmt *pf_to_mgmt, static void prepare_mgmt_cmd(u8 *mgmt_cmd, u64 *header, void *msg, int msg_len) { - u32 cmd_buf_max = MAX_PF_MGMT_BUF_SIZE; - memset(mgmt_cmd, 0, MGMT_MSG_RSVD_FOR_DEV); mgmt_cmd += MGMT_MSG_RSVD_FOR_DEV; - cmd_buf_max -= MGMT_MSG_RSVD_FOR_DEV; memcpy(mgmt_cmd, header, sizeof(*header)); mgmt_cmd += sizeof(*header); - cmd_buf_max -= sizeof(*header); memcpy(mgmt_cmd, msg, msg_len); } @@ -615,7 +611,6 @@ static int recv_mgmt_msg_handler(struct hinic_msg_pf_to_mgmt *pf_to_mgmt, void *msg_body = header + sizeof(msg_header); u8 *dest_msg; u8 seq_id, seq_len; - u32 msg_buf_max = MAX_PF_MGMT_BUF_SIZE; u8 front_id; u16 msg_id; @@ -635,7 +630,6 @@ static int recv_mgmt_msg_handler(struct hinic_msg_pf_to_mgmt *pf_to_mgmt, } dest_msg = (u8 *)recv_msg->msg + seq_id * HINIC_MSG_SEG_LEN; - msg_buf_max -= seq_id * HINIC_MSG_SEG_LEN; memcpy(dest_msg, msg_body, seq_len); if (!HINIC_MSG_HEADER_GET(msg_header, LAST)) -- 2.34.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-11-28 22:41:04.432298156 +0800 +++ 0018-net-hinic-base-remove-some-unused-variables.patch 2021-11-28 22:41:03.230209276 +0800 @@ -1 +1 @@ -From b5dedf261c907df478413f5c9e4ba97fc568bb4e Mon Sep 17 00:00:00 2001 +From 0a475878ef6515262697693a22274091b98ba014 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit b5dedf261c907df478413f5c9e4ba97fc568bb4e ]