All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypto: dh - Remove the unused function dh_safe_prime_dh_alg()
@ 2022-03-08  7:55 Jiapeng Chong
  2022-03-14  2:54 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2022-03-08  7:55 UTC (permalink / raw)
  To: herbert; +Cc: davem, linux-crypto, linux-kernel, Jiapeng Chong, Abaci Robot

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@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] crypto: dh - Remove the unused function dh_safe_prime_dh_alg()
  2022-03-08  7:55 [PATCH] crypto: dh - Remove the unused function dh_safe_prime_dh_alg() Jiapeng Chong
@ 2022-03-14  2:54 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2022-03-14  2:54 UTC (permalink / raw)
  To: Jiapeng Chong; +Cc: davem, linux-crypto, linux-kernel, Abaci Robot

On Tue, Mar 08, 2022 at 03:55:37PM +0800, Jiapeng Chong wrote:
> 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@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
>  crypto/dh.c | 6 ------
>  1 file changed, 6 deletions(-)

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-03-14  2:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-08  7:55 [PATCH] crypto: dh - Remove the unused function dh_safe_prime_dh_alg() Jiapeng Chong
2022-03-14  2:54 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.