Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21899190rwd; Fri, 30 Jun 2023 00:55:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DFY+OumSvhOLfiXSTgV/JRNJexGR1Kr5SVp7uKGa/oO6yfmdgoZ8WYX5XIitCzyU7DY7U X-Received: by 2002:a05:6a20:4406:b0:127:2dc1:c885 with SMTP id ce6-20020a056a20440600b001272dc1c885mr2771466pzb.4.1688111719030; Fri, 30 Jun 2023 00:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688111719; cv=none; d=google.com; s=arc-20160816; b=f+NWlo1GrBA62dgtvGN3kVbmC0iVfiYKdfzGrHTNUTuTz/LMspCRfHsZJwL0ljbi5u a8BEWrXoL/FzrYRl3NYmAj/0vcFfHLvYpKcpRV2N+qX3e6vwTFWV/e+UUpecBnJP6LLp Cr/Dy1qkBmGKTd5567YKGccY/3afvugHJlBE08sMBBq6urwoK6SC541f4RPMI5gfuVnp M8WLKUfg47P8ZY0iyqdr3QXeHXdsc7oCoqSOLWtd0/NIiBiI3FERr38cw8zJ9lCFg19i RXwSuqjmAyVqG6jhsvNYa+lfIUHvV3Cr8Cckp88FEUclQ/tQKsbX8Z5r1OsifRma/Dnw b8dQ== 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 :message-id:date:subject:cc:to:from; bh=BDAYDyLqie5Lz9TRNonLjF+gerFjGggNh9qTG9dbe/E=; fh=oSYnFTjqnBbOn4+yb9ccg8OVfyjHUlawIVEMFbCDy4Q=; b=nFTF77qPb6w1FJAGftmMqn1hOm8sBBwJAnTy+s6t4ORK8iMcGKpuCUt2RGlPTye4TV ZHGN49juNpHQag1xFOg2QztgfGIPnvPEURKhGWkNPei1HYyDJ/cf3AWE+C8/ahbc6yJ8 TOvwadH0lea9fLRpFDsDIP6viZT/nmq/ZtvSY8QY0dMXJ7imZJrnv02PDHeFi1/tQ7YU 89VaGhpMCje6iVezImmpnuBN1++WdvhFiemWmQM8DS1Dv2kTR4nBS1vSyJ4qz+nYpzjN E4xQ1mBK9ird3YbaLrK01nV7W5gnYUwXM9w2QFcW4BoRReaWF/1wTSyboDBn15JiRd3u PXAQ== 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=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ca9-20020a056a00418900b0066cc86468c5si11072177pfb.26.2023.06.30.00.55.04; Fri, 30 Jun 2023 00:55:19 -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=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231969AbjF3Hy4 (ORCPT + 99 others); Fri, 30 Jun 2023 03:54:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232033AbjF3Hys (ORCPT ); Fri, 30 Jun 2023 03:54:48 -0400 Received: from out30-124.freemail.mail.aliyun.com (out30-124.freemail.mail.aliyun.com [115.124.30.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6753F10D5; Fri, 30 Jun 2023 00:54:45 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045170;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VmHfFmv_1688111680; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VmHfFmv_1688111680) by smtp.aliyun-inc.com; Fri, 30 Jun 2023 15:54:42 +0800 From: Jiapeng Chong To: herbert@gondor.apana.org.au Cc: davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] crypto: sig - Remove some unused functions Date: Fri, 30 Jun 2023 15:54:24 +0800 Message-Id: <20230630075424.44776-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL 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 These functions are defined in the sig.c file, but not called elsewhere, so delete these unused functions. crypto/sig.c:24:34: warning: unused function '__crypto_sig_tfm'. Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5701 Signed-off-by: Jiapeng Chong --- crypto/sig.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/crypto/sig.c b/crypto/sig.c index b48c18ec65cd..224c47019297 100644 --- a/crypto/sig.c +++ b/crypto/sig.c @@ -21,11 +21,6 @@ static const struct crypto_type crypto_sig_type; -static inline struct crypto_sig *__crypto_sig_tfm(struct crypto_tfm *tfm) -{ - return container_of(tfm, struct crypto_sig, base); -} - static int crypto_sig_init_tfm(struct crypto_tfm *tfm) { if (tfm->__crt_alg->cra_type != &crypto_sig_type) -- 2.20.1.7.g153144c