Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Jiapeng Chong and committed by
Herbert Xu
c6ded03b 7f0f1f3e

-6
-6
crypto/dh.c
··· 308 308 return kpp_instance_ctx(kpp_alg_instance(tfm)); 309 309 } 310 310 311 - static inline struct kpp_alg *dh_safe_prime_dh_alg( 312 - struct dh_safe_prime_tfm_ctx *ctx) 313 - { 314 - return crypto_kpp_alg(ctx->dh_tfm); 315 - } 316 - 317 311 static int dh_safe_prime_init_tfm(struct crypto_kpp *tfm) 318 312 { 319 313 struct dh_safe_prime_instance_ctx *inst_ctx =