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

Configure Feed

Select the types of activity you want to include in your feed.

crypto: api - remove unnecessary forward declarations

Add the __maybe_unused attribute to the function definitions and remove
the now-unnecessary forward declarations.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Thorsten Blum and committed by
Herbert Xu
a3f8e009 b4f275b9

+16 -27
+2 -4
crypto/acompress.c
··· 60 60 return nla_put(skb, CRYPTOCFGA_REPORT_ACOMP, sizeof(racomp), &racomp); 61 61 } 62 62 63 - static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) 64 - __maybe_unused; 65 - 66 - static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) 63 + static void __maybe_unused crypto_acomp_show(struct seq_file *m, 64 + struct crypto_alg *alg) 67 65 { 68 66 seq_puts(m, "type : acomp\n"); 69 67 }
+2 -3
crypto/aead.c
··· 151 151 return nla_put(skb, CRYPTOCFGA_REPORT_AEAD, sizeof(raead), &raead); 152 152 } 153 153 154 - static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) 155 - __maybe_unused; 156 - static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) 154 + static void __maybe_unused crypto_aead_show(struct seq_file *m, 155 + struct crypto_alg *alg) 157 156 { 158 157 struct aead_alg *aead = container_of(alg, struct aead_alg, base); 159 158
+2 -3
crypto/ahash.c
··· 801 801 return nla_put(skb, CRYPTOCFGA_REPORT_HASH, sizeof(rhash), &rhash); 802 802 } 803 803 804 - static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) 805 - __maybe_unused; 806 - static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) 804 + static void __maybe_unused crypto_ahash_show(struct seq_file *m, 805 + struct crypto_alg *alg) 807 806 { 808 807 seq_printf(m, "type : ahash\n"); 809 808 seq_printf(m, "async : %s\n",
+2 -4
crypto/akcipher.c
··· 46 46 sizeof(rakcipher), &rakcipher); 47 47 } 48 48 49 - static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) 50 - __maybe_unused; 51 - 52 - static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) 49 + static void __maybe_unused crypto_akcipher_show(struct seq_file *m, 50 + struct crypto_alg *alg) 53 51 { 54 52 seq_puts(m, "type : akcipher\n"); 55 53 }
+2 -4
crypto/kpp.c
··· 29 29 return nla_put(skb, CRYPTOCFGA_REPORT_KPP, sizeof(rkpp), &rkpp); 30 30 } 31 31 32 - static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg) 33 - __maybe_unused; 34 - 35 - static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg) 32 + static void __maybe_unused crypto_kpp_show(struct seq_file *m, 33 + struct crypto_alg *alg) 36 34 { 37 35 seq_puts(m, "type : kpp\n"); 38 36 }
+2 -3
crypto/rng.c
··· 77 77 return nla_put(skb, CRYPTOCFGA_REPORT_RNG, sizeof(rrng), &rrng); 78 78 } 79 79 80 - static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) 81 - __maybe_unused; 82 - static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) 80 + static void __maybe_unused crypto_rng_show(struct seq_file *m, 81 + struct crypto_alg *alg) 83 82 { 84 83 seq_printf(m, "type : rng\n"); 85 84 seq_printf(m, "seedsize : %u\n", seedsize(alg));
+2 -3
crypto/shash.c
··· 346 346 return nla_put(skb, CRYPTOCFGA_REPORT_HASH, sizeof(rhash), &rhash); 347 347 } 348 348 349 - static void crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) 350 - __maybe_unused; 351 - static void crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) 349 + static void __maybe_unused crypto_shash_show(struct seq_file *m, 350 + struct crypto_alg *alg) 352 351 { 353 352 struct shash_alg *salg = __crypto_shash_alg(alg); 354 353
+2 -3
crypto/skcipher.c
··· 570 570 skcipher->free(skcipher); 571 571 } 572 572 573 - static void crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg) 574 - __maybe_unused; 575 - static void crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg) 573 + static void __maybe_unused crypto_skcipher_show(struct seq_file *m, 574 + struct crypto_alg *alg) 576 575 { 577 576 struct skcipher_alg *skcipher = __crypto_skcipher_alg(alg); 578 577