]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: scompress - Remove forward declaration of crypto_scomp_show
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 9 Dec 2025 15:30:43 +0000 (16:30 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Dec 2025 06:47:47 +0000 (14:47 +0800)
Add the __maybe_unused attribute to the crypto_scomp_show() definition
and remove the now-unnecessary forward declaration.

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

index 1a7ed8ae65b074d6a040ecac489277f6b7c0a449..70ceb2fe3d7fccc7f8f681be7851072672782bba 100644 (file)
@@ -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");
 }