lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220308075537.36374-1-jiapeng.chong@linux.alibaba.com>
Date:   Tue,  8 Mar 2022 15:55:37 +0800
From:   Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
To:     herbert@...dor.apana.org.au
Cc:     davem@...emloft.net, linux-crypto@...r.kernel.org,
        linux-kernel@...r.kernel.org,
        Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>,
        Abaci Robot <abaci@...ux.alibaba.com>
Subject: [PATCH] crypto: dh - Remove the unused function dh_safe_prime_dh_alg()

Fix the following W=1 kernel warnings:

crypto/dh.c:311:31: warning: unused function 'dh_safe_prime_dh_alg'
[-Wunused-function]

Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@...ux.alibaba.com>
---
 crypto/dh.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/crypto/dh.c b/crypto/dh.c
index cca289477485..4406aeb1ff61 100644
--- a/crypto/dh.c
+++ b/crypto/dh.c
@@ -308,12 +308,6 @@ static inline struct dh_safe_prime_instance_ctx *dh_safe_prime_instance_ctx(
 	return kpp_instance_ctx(kpp_alg_instance(tfm));
 }
 
-static inline struct kpp_alg *dh_safe_prime_dh_alg(
-	struct dh_safe_prime_tfm_ctx *ctx)
-{
-	return crypto_kpp_alg(ctx->dh_tfm);
-}
-
 static int dh_safe_prime_init_tfm(struct crypto_kpp *tfm)
 {
 	struct dh_safe_prime_instance_ctx *inst_ctx =
-- 
2.20.1.7.g153144c

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ