crypto: scompress - Remove forward declaration of crypto_scomp_show
PATCH 1/1 crypto: scompress - Remove forward declaration of crypto_scomp_show
Add the __maybe_unused attribute to the crypto_scomp_show() definition and remove the now-unnecessary forward declaration.
Signed-off-by Thorsten Blum <[email protected]>
--- crypto/scompress.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
crypto/scompress.c +2 -4
@@ -58,10 +58,8 @@ static int __maybe_unused crypto_scomp_report( sizeof(rscomp), &rscomp); } -static void crypto_scomp_show (struct seq_file *m,struct crypto_alg *alg) -__maybe_unused ; - -static void crypto_scomp_show (struct seq_file *m,struct crypto_alg *alg) +static void __maybe_unused crypto_scomp_show (struct seq_file *m, +struct crypto_alg *alg) {seq_puts (m,"type : scomp\n" ); }
Signature · 2 lines
Thorsten Blum <[email protected]> GPG: 1D60 735E 8AEF 3BE4 73B6 9D84 7336 78FD 8DFE EAD4
Herbert Xu
maintainerQuoted 7 lines · Thorsten Blum
Add the
__maybe_unusedattribute to thecrypto_scomp_show()definition and remove the now-unnecessary forward declaration.Signed-off-by Thorsten Blum <[email protected]>--- crypto/scompress.c | 6 ++---- 1 file changed, 2 insertions(+), 4 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