Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp660396rwb; Fri, 23 Sep 2022 02:18:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7u+IWEKszk1qqzxX3bPKTUTH/HkhqNnbe2pQfJP+8fYqCYpD3eGffg0EvEHDFGNzfBKKkP X-Received: by 2002:a17:90b:4c8a:b0:202:b3cd:f960 with SMTP id my10-20020a17090b4c8a00b00202b3cdf960mr8556704pjb.129.1663924725520; Fri, 23 Sep 2022 02:18:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663924725; cv=none; d=google.com; s=arc-20160816; b=BLlBmC1Cc7398qcIlyvwXlpaa7RuFD/0MYHwjKJMbq7kPEo/Kbdn1wN7yS2ISUkNJc guOjBsOzebpLQXl/gjJtAro5/y9CG0VRYxlw4V3ijmBi1Ev7z0w63WEG3Bo+eDzVvFVn Oz0n6fyQeUC3CGrRW7VfV0SB6PMaY0rZoQBSsiBsk7Y5UDNMP4v+aUzyhqcGWtP71+r7 YMswIWvNiFQBixLFSsgAwWatOP6ttrHfHt+low+EoNfCN6bovcwRGxnhmoGUpZG228wk M1P/0kqC5YGQiIajYOyOZvDm8TCeLi4UjCv+LZtqtlN6QsGlowH73aL9PgGaAvTV0Afz 7uNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fZ0wjX1r6Hmx09amQ58ZhUzUkdZhNkL4lKzDdksTx24=; b=nejPe3HpHJdhwS/Y3oaYEeLQCZmG8MFl+pKi7srKuDIq9H1e71C8kPF38FOYmk4fNE 9UDaMcW3YWb1/FNJqSd7F8Yu8srm2qD4vvQUfcLbHpq8rlBz6xdjnBVB0BXkm/fDVxS1 HpebT7+FRKMxjL0iPziNRVsleXMHzmBVcTwwpJVLDLXdq2PREwkrx618V3z03V/4BIu+ f9gMs4ALArhswk7UJjTWHpJSre25+pcNkB3rJh9IPM4V/PFkKM7CtgAMOENGa7nqryc8 LP8GDfKQGl6aK7lm9KWp+aSID9Klu2JTCLu1I+4DEaqY7bKCx/or2P0igfae/NsYbPyy duAQ== ARC-Authentication-Results: i=1; mx.google.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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a15-20020a17090abe0f00b001fe2ab750b6si1911443pjs.146.2022.09.23.02.18.20; Fri, 23 Sep 2022 02:18:45 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231610AbiIWJIr (ORCPT + 99 others); Fri, 23 Sep 2022 05:08:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231621AbiIWJIj (ORCPT ); Fri, 23 Sep 2022 05:08:39 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A9AC12ED83 for ; Fri, 23 Sep 2022 02:08:27 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MYmR12M5nzMpZ6; Fri, 23 Sep 2022 17:03:41 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 17:08:24 +0800 From: Gaosheng Cui To: , , , , CC: Subject: [PATCH 2/3] crypto: aead - Remove unused inline functions from aead Date: Fri, 23 Sep 2022 17:08:22 +0800 Message-ID: <20220923090823.509656-3-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220923090823.509656-1-cuigaosheng1@huawei.com> References: <20220923090823.509656-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 The aead_enqueue_request, aead_dequeue_request and aead_get_backlog are no longer used since commit 04a4616e6a21 ("crypto: omap-aes-gcm - convert to use crypto engine"), their functinoality has been replaced by crypto engine, so remove them. Signed-off-by: Gaosheng Cui --- include/crypto/internal/aead.h | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/include/crypto/internal/aead.h b/include/crypto/internal/aead.h index 27b7b0224ea6..d482017f3e20 100644 --- a/include/crypto/internal/aead.h +++ b/include/crypto/internal/aead.h @@ -114,31 +114,6 @@ static inline void aead_init_queue(struct aead_queue *queue, crypto_init_queue(&queue->base, max_qlen); } -static inline int aead_enqueue_request(struct aead_queue *queue, - struct aead_request *request) -{ - return crypto_enqueue_request(&queue->base, &request->base); -} - -static inline struct aead_request *aead_dequeue_request( - struct aead_queue *queue) -{ - struct crypto_async_request *req; - - req = crypto_dequeue_request(&queue->base); - - return req ? container_of(req, struct aead_request, base) : NULL; -} - -static inline struct aead_request *aead_get_backlog(struct aead_queue *queue) -{ - struct crypto_async_request *req; - - req = crypto_get_backlog(&queue->base); - - return req ? container_of(req, struct aead_request, base) : NULL; -} - static inline unsigned int crypto_aead_alg_chunksize(struct aead_alg *alg) { return alg->chunksize; -- 2.25.1