Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1144636rwb; Tue, 27 Sep 2022 09:00:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4trWI05ZQzThrlzHSIz9fOfJlQXj6P7NTlyPffGV46vujWJL4c6CRylRgorPVIFUHsgr9F X-Received: by 2002:a17:90b:380d:b0:202:56b2:4ef8 with SMTP id mq13-20020a17090b380d00b0020256b24ef8mr5477779pjb.2.1664294418617; Tue, 27 Sep 2022 09:00:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1664294418; cv=pass; d=google.com; s=arc-20160816; b=wE8FiPX0fT2LNSADF7mCMp6HkCDGxbB9YbVfp55zYle77x/mg/f74m+Ltk+HCcKMNw IIAijCFYQVqpb7tBEFK9pdTLi74dvh4/gHYgBnc6D5OPpJK4RjKYI+2ypyK3KEN1bUPh QaDupNnxvbeLO9G7kcTfKii9NlNvFgS42oaoFi0f7GNbly1oExROetrFVpBKR/RpyyKK 1RwklZLX5mBS9tLMePL5UWBYIcNk2jPmcGX1tQBZE3zx+oR9DboDmPWSA3Gn6DmMU7/F 0VYm75cn9YETMh+7FzADm+C+Ied2HNIdQVmvAoyp6S9pPXuBkvlADmqRAmKZ9CxSkZ8Z mhOQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:to:content-language:subject:user-agent :date:message-id:dkim-signature; bh=hrVjhbAb9q2MSWhGGAfTPYE35JQQYe/zwvgxMwxKSjw=; b=vQaolcUOk61E6qDJnGVXDoD7EZb5dewQkBuY162FIhIVKhKXS57RsvBbSPi/h13sn9 SLnB4Qs4dbLgoLmp4/e0eDGig4QMZnUtawhG+PQnD6KQmEx+6xM2EifSNvS5E22oUtVR CuedjEIY2LBwU3qJXHMG8WlxRqlpjFpNhc05KZqvBtAccKWXxr8VNsW3cDgG9NcQQizo 1kSxGUH6zXkwp2DNMHs+kAEGjokfYKjQaCBE9ZUyPDNn52O0ojfX5MA8QC/2L0ZaJVHF vd2yBjI97fvrN4nzMw9NV8/vEpn1KrTgG0ItcF3/H5KNeg5t15OZglNPddCaPeIj9qzQ mNvg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=bMBdplRe; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi17-20020a17090b4b5100b001fd73f8193csi2678675pjb.10.2022.09.27.08.59.54; Tue, 27 Sep 2022 09:00:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=bMBdplRe; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232230AbiI0Puu (ORCPT + 99 others); Tue, 27 Sep 2022 11:50:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231726AbiI0Pu0 (ORCPT ); Tue, 27 Sep 2022 11:50:26 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B92A95A2E6 for ; Tue, 27 Sep 2022 08:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NFuUWWIBIUpnKvcEYXuJRsF9xJhmYr6wtm4p6ygML1A5d8OIucffJ1YI4aIw8gYlmrNoVvl6tqYi42AbvVjFxARbDgpcOnWD9CEsH4PyJG1IJQoP5UZynG2BnND3U4S2g7tAAJyIAAT+Vu9gXm5O8Lkf6aP82/XRNwbHTdl2jxu5N/St6i3V5eIRjEAqU8NTCRiWsw4taI4J+cAC/KzldrAgAMYX8S2AVxr8b5cVjcrGjvyQdcA0tW+U6VsDxWazfL9gEGVYN7BBE6PSNjQySHDzMHFJ8Zc6X13w8feaniUK06OdbYRMPJ9pEljh8uOhtAzbgmpLWCvYPjFzOdK0BQ== 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=hrVjhbAb9q2MSWhGGAfTPYE35JQQYe/zwvgxMwxKSjw=; b=l4RSadUtLuE83UiJES0tJRc0nz9kTsbkA4F2jOoxyBwt5vDpsSciaoEoTzi8i+/f7SkBgYlm6VrLGEXP4kWbr75xFrq4v3TgAS5YEkz5uXNGuKuQnNHmQ3AjN65peXe8yq5ilwJCVgI3QDUvaAiwZJzmrwtqjg7/bXFNfTB7ce0O+xQUiIRYNKN5XdDa7eMmDSCdyeHoTZ9RQWTb+O8LuLiTx/BJJ94RFJSFgAfspi16Q4bKLmOsKe+r3AwFnyWH/OfpoySssMJu8cL7ZRZVrv5qf/hGql9MDPkZ0Vs8g2NwOXP0yBs29UWJRMwOI0Qxp5gdYtkREn8x6UKG/BMeeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hrVjhbAb9q2MSWhGGAfTPYE35JQQYe/zwvgxMwxKSjw=; b=bMBdplReWP3SGqOhhP3AMBbyRfp3dO4lA3v8gVoU4hMzeS2L+WOwEPfyQUu3ef+9qVbRF46t4t7vgFiDUCYI+wvAOZVDB3cadOuwSRys0IabCB+PHn+kgQNJByCS2nhCu32NUAr2Y8YoZDHNphNkwIxosT8mJC7RTbduWfunv60= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from BL1PR12MB5995.namprd12.prod.outlook.com (2603:10b6:208:39b::20) by BL1PR12MB5079.namprd12.prod.outlook.com (2603:10b6:208:31a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.20; Tue, 27 Sep 2022 15:48:28 +0000 Received: from BL1PR12MB5995.namprd12.prod.outlook.com ([fe80::297f:558e:dba9:9564]) by BL1PR12MB5995.namprd12.prod.outlook.com ([fe80::297f:558e:dba9:9564%8]) with mapi id 15.20.5654.025; Tue, 27 Sep 2022 15:48:28 +0000 Message-ID: Date: Tue, 27 Sep 2022 10:47:48 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH] crypto: ccp - Remove unused struct ccp_crypto_cpu Content-Language: en-US To: Yuan Can , thomas.lendacky@amd.com, herbert@gondor.apana.org.au, davem@davemloft.net, linux-crypto@vger.kernel.org References: <20220927133955.104353-1-yuancan@huawei.com> From: John Allen In-Reply-To: <20220927133955.104353-1-yuancan@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SJ0PR05CA0089.namprd05.prod.outlook.com (2603:10b6:a03:332::34) To BL1PR12MB5995.namprd12.prod.outlook.com (2603:10b6:208:39b::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5995:EE_|BL1PR12MB5079:EE_ X-MS-Office365-Filtering-Correlation-Id: 6ee5d53a-266c-4593-1cc1-08daa09fb8a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lA/n9WonJRjsNHKQXRzxnIlJyvDR5Ghuej1mtQlR8I2suF3IEweK16vRZTNio7A++duQNiP+BvDx72e/9WpE5nxwJt7J8KUTEEwU3ushCXM3FBv2LUkU8pS/33x/WQzyeH6geMqJs/Gwq/xANqfYPaq15HRqFEeZraUBfP+2Gn3fQsvrpv1nCq6icHhTBe/SDlAtNsfAadJ07r7QkyzTpDQgYBFT3AWFCSXpVQIKEi3WM0FBYHhTOs7UUgcZHS9VRs2eVOXrnRh+2FyyKCrZ7T6hfj/LG8DMK7dEGb7pUyREXp3OQqvrQ5vql1gvrQZndbRw9los2nb2yKBbeGO221RdrBNBcrZtbtAvm7fE5Ukb7ijOBduTY94LxYVW42iJnmvgufdBBIo8A74loJlW3mmT1wrHpS2DlkywNN8E5GxE4hzlGn6KP5ZSm0z0aRGTY+lxS240m/JOLYGghF9FJrUzURbBl5XRkJMhanKOuo8i9N1nGJGz2BoqbmCmo+5x8QRJMvHj/czE8IJTIX3XauOOFinVA+QYtfMncHJOu39VfpPtcVkUqi1GE6x6up7aTMYQ8hzHpN43dXyZ+WoVhROI5SlfGh5OM05P3mZt136AECnFeKSsgLN9MniG4LNMfPc5qrmCb9rdZLJwn+nnx2O/AIYQEnGPM2CyLuR9JG6KKV3+ApO1nia08e117Xza47TfRH1ko3XdYIuXqsta5arnpr9qAb+tZSU9vxSOiBKWDFc3sluzPG+i02/SVXSAY710x/ObyA96dJioA20RSA2L8MNo5bTZXnVbswy66/A= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR12MB5995.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(376002)(346002)(136003)(366004)(396003)(451199015)(26005)(8936002)(31686004)(66476007)(2906002)(44832011)(66556008)(316002)(36756003)(8676002)(5660300002)(66946007)(4744005)(41300700001)(6486002)(478600001)(53546011)(6512007)(6506007)(2616005)(6666004)(83380400001)(186003)(38100700002)(31696002)(86362001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ek1oRWEzdFFwcG0wZ1dqWEx4MStSSlBrQmtwQ3B3Z2tuYW16cHRJUFBMc0hm?= =?utf-8?B?dXQrZEI3Y3E5QzRSd3FIcUNmZkQ4T1BXTGNhakwrdHI1OFZ4MTZEMmxXYUVF?= =?utf-8?B?bXVoaVdzaEhNZUoydURmSFBxZFpFSTYyVmI4ZHZ3ejl6M2JZdzIrcFVleWFk?= =?utf-8?B?dURsYzY2Rnhkd0tDZnlNbHQxNWVhdHhwNDNObG1RTHlmcDczVHVZSXBrOEdl?= =?utf-8?B?WTJrV2crOWdqSk1SS1UxWlg2eDhqNnpVeDFlVkxsNlBZQkF3aUZYejJPTFha?= =?utf-8?B?aTBLdi9oUS9tUHpRN3NvdlU4cVFUemVuZWNIcmg2Qk84RTVvbHJFa0NndzFk?= =?utf-8?B?WlYyVXlob3FyUEt4Z0FLeVo0ODBMKzFmQWRYdTZwMU9RVVdiajMyQ05wL1JI?= =?utf-8?B?L0dUenhnT3RubEd6emtYZks1Y2FSVVFOeGxvSm1sYW9HYWQ1VERNNHdPMWlV?= =?utf-8?B?RjNhVzNxdWww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B?OTZkWjdaclYwUUhuR3lOaTdoaEw1WGFJbjQzMmR6RUprSENpTmg1WFFmMUxW?= =?utf-8?B?UmJlUGlxcHpyUHVEZHowdC9STlRRc1lrdVVKNGFWRzhCaFZXSFA5NGNZZkpN?= =?utf-8?B?T3hTbEdDTEpxaUFWaHJYSzUzbjhHejlwMmQwRHdWUnc0bk14VW9ZS0hXYUZl?= =?utf-8?B?aktObE01S1R2aVRkUy9zakx6Z3NRb3RlYmkySlhXQmhGS3JyTDJiYXBYUWxn?= =?utf-8?B?M2I0ODhZNUNDUkprR09NVkxrVEdmWElZQk9SRHVmdlVFVm55Y2VNTmpsTENj?= =?utf-8?B?S1N0NjU0U2F2RnNaOUc5c0hlbS8wWlcrRktqdUNQOGtJZGlwd2FoTzJBbW1y?= =?utf-8?B?bUo4aFh0VHVpczVGTHFPc2lNaUtOTWwxUXc3RGVsSEJmOFgvcmtlQVlTbk5u?= =?utf-8?B?clhleTFzTzgvYU5lR2pvYjFLeGR4T2duZWdQY1NqZElDdnFQOUFkcktiZGJh?= =?utf-8?B?SWN4OS9tZDBVMmozWkFtUmdjRW15dnVINUtEalRUY0hwdm9KNmc3cU1FL2RH?= =?utf-8?B?SHdIcmVha01vYUhvNG1Db292alNkcHovaTc4dlNnNldQWUU2aWVxSHhPd1NI?= =?utf-8?B?N1E5UmUrWVN6RDhrUzMwMDljUHNGeWRXdE5sc2hSVEtPL3ViQjJmRTdOV2hT?= =?utf-8?B?cDBoYWhTYWhlODdjcnJpd1QyNmtrb2dUWUN6MHdWNWNWOGZ1RmkxMk9VTWkx?= =?utf-8?Q?LGFlRC79ZXxf8PvMTD59XE43k?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ee5d53a-266c-4593-1cc1-08daa09fb8a0 X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5995.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2022 15:48:28.5810 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: odQnehhPpyEPPvupekZR4PNevxIDUAH2K61BzAXoVTviJjF+skJ5vUNTD2V5ASvkk4hVM0cW1ZQXNf/D5JvL1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5079 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 9/27/22 8:39 AM, Yuan Can wrote: > After commit bc3854476f36("crypto: ccp - Use a single queue for proper ordering > of tfm requests"), no one use struct ccp_crypto_cpu, so remove it. > > Signed-off-by: Yuan Can Acked-by: John Allen > --- > drivers/crypto/ccp/ccp-crypto-main.c | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/drivers/crypto/ccp/ccp-crypto-main.c b/drivers/crypto/ccp/ccp-crypto-main.c > index 5976530c00a8..c8f3345c66e2 100644 > --- a/drivers/crypto/ccp/ccp-crypto-main.c > +++ b/drivers/crypto/ccp/ccp-crypto-main.c > @@ -78,13 +78,6 @@ struct ccp_crypto_cmd { > int ret; > }; > > -struct ccp_crypto_cpu { > - struct work_struct work; > - struct completion completion; > - struct ccp_crypto_cmd *crypto_cmd; > - int err; > -}; > - > static inline bool ccp_crypto_success(int err) > { > if (err && (err != -EINPROGRESS) && (err != -EBUSY))