crypto - remove unnecessary forward declarations
PATCH 1/1 crypto - 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 <[email protected]>
--- crypto/acompress.c | 6 ++---- crypto/aead.c | 5 ++--- crypto/ahash.c | 5 ++--- crypto/akcipher.c | 6 ++---- crypto/kpp.c | 6 ++---- crypto/rng.c | 5 ++--- crypto/shash.c | 5 ++--- crypto/skcipher.c | 5 ++--- 8 files changed, 16 insertions(+), 27 deletions(-)
crypto/acompress.c +2 -4
@@ -60,10 +60,8 @@ static int __maybe_unused crypto_acomp_report(return nla_put (skb,CRYPTOCFGA_REPORT_ACOMP ,sizeof (racomp), &racomp); } -static void crypto_acomp_show (struct seq_file *m,struct crypto_alg *alg) -__maybe_unused ; - -static void crypto_acomp_show (struct seq_file *m,struct crypto_alg *alg) +static void __maybe_unused crypto_acomp_show (struct seq_file *m, +struct crypto_alg *alg) {seq_puts (m,"type : acomp\n" ); }
crypto/aead.c +2 -3
@@ -151,9 +151,8 @@ static int __maybe_unused crypto_aead_report(return nla_put (skb,CRYPTOCFGA_REPORT_AEAD ,sizeof (raead), &raead); } -static void crypto_aead_show (struct seq_file *m,struct crypto_alg *alg) -__maybe_unused ; -static void crypto_aead_show (struct seq_file *m,struct crypto_alg *alg) +static void __maybe_unused crypto_aead_show (struct seq_file *m, +struct crypto_alg *alg) { struct aead_alg *aead = container_of(alg, struct aead_alg, base);
crypto/ahash.c +2 -3
@@ -801,9 +801,8 @@ static int __maybe_unused crypto_ahash_report(return nla_put (skb,CRYPTOCFGA_REPORT_HASH ,sizeof (rhash), &rhash); } -static void crypto_ahash_show (struct seq_file *m,struct crypto_alg *alg) -__maybe_unused ; -static void crypto_ahash_show (struct seq_file *m,struct crypto_alg *alg) +static void __maybe_unused crypto_ahash_show (struct seq_file *m, +struct crypto_alg *alg) {seq_printf (m,"type : ahash\n" ); seq_printf(m, "async : %s\n",
crypto/akcipher.c +2 -4
@@ -46,10 +46,8 @@ static int __maybe_unused crypto_akcipher_report( sizeof(rakcipher), &rakcipher); } -static void crypto_akcipher_show (struct seq_file *m,struct crypto_alg *alg) -__maybe_unused ; - -static void crypto_akcipher_show (struct seq_file *m,struct crypto_alg *alg) +static void __maybe_unused crypto_akcipher_show (struct seq_file *m, +struct crypto_alg *alg) {seq_puts (m,"type : akcipher\n" ); }
crypto/kpp.c +2 -4
@@ -29,10 +29,8 @@ static int __maybe_unused crypto_kpp_report(return nla_put (skb,CRYPTOCFGA_REPORT_KPP ,sizeof (rkpp), &rkpp); } -static void crypto_kpp_show (struct seq_file *m,struct crypto_alg *alg) -__maybe_unused ; - -static void crypto_kpp_show (struct seq_file *m,struct crypto_alg *alg) +static void __maybe_unused crypto_kpp_show (struct seq_file *m, +struct crypto_alg *alg) {seq_puts (m,"type : kpp\n" ); }
crypto/rng.c +2 -3
@@ -77,9 +77,8 @@ static int __maybe_unused crypto_rng_report(return nla_put (skb,CRYPTOCFGA_REPORT_RNG ,sizeof (rrng), &rrng); } -static void crypto_rng_show (struct seq_file *m,struct crypto_alg *alg) -__maybe_unused ; -static void crypto_rng_show (struct seq_file *m,struct crypto_alg *alg) +static void __maybe_unused crypto_rng_show (struct seq_file *m, +struct crypto_alg *alg) {seq_printf (m,"type : rng\n" );seq_printf (m,"seedsize : %u\n" ,seedsize (alg));
crypto/shash.c +2 -3
@@ -346,9 +346,8 @@ static int __maybe_unused crypto_shash_report(return nla_put (skb,CRYPTOCFGA_REPORT_HASH ,sizeof (rhash), &rhash); } -static void crypto_shash_show (struct seq_file *m,struct crypto_alg *alg) -__maybe_unused ; -static void crypto_shash_show (struct seq_file *m,struct crypto_alg *alg) +static void __maybe_unused crypto_shash_show (struct seq_file *m, +struct crypto_alg *alg) {struct shash_alg *salg =__crypto_shash_alg (alg);
crypto/skcipher.c +2 -3
@@ -570,9 +570,8 @@ static void crypto_skcipher_free_instance(struct crypto_instance *inst) skcipher->free (skcipher); } -static void crypto_skcipher_show (struct seq_file *m,struct crypto_alg *alg) -__maybe_unused ; -static void crypto_skcipher_show (struct seq_file *m,struct crypto_alg *alg) +static void __maybe_unused crypto_skcipher_show (struct seq_file *m, +struct crypto_alg *alg) {struct skcipher_alg *skcipher =__crypto_skcipher_alg (alg);
Signature · 2 lines
Thorsten Blum <[email protected]> GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4
Herbert Xu
maintainerQuoted 4 lines · Thorsten Blum
Add the
__maybe_unusedattribute to the function definitions and remove the now-unnecessary forward declarations.Signed-off-by Thorsten Blum <[email protected]>
Quoted 10 lines
--- crypto/acompress.c | 6 ++---- crypto/aead.c | 5 ++--- crypto/ahash.c | 5 ++--- crypto/akcipher.c | 6 ++---- crypto/kpp.c | 6 ++---- crypto/rng.c | 5 ++--- crypto/shash.c | 5 ++--- crypto/skcipher.c | 5 ++--- 8 files changed, 16 insertions(+), 27 deletions(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt